mirror of
https://github.com/cssgunc/compass.git
synced 2025-04-10 06:10:17 -04:00
16 lines
342 B
TypeScript
16 lines
342 B
TypeScript
import React, { ReactNode } from 'react';
|
|
|
|
interface Link {
|
|
href?: string;
|
|
children: ReactNode;
|
|
}
|
|
|
|
const InlineLink: React.FC<Link> = ({href = '#', children}) => {
|
|
return (
|
|
<a href={href} className='text-sm text-purple-600 hover:underline font-semibold'>
|
|
{children}
|
|
</a>
|
|
)
|
|
}
|
|
|
|
export default InlineLink; |