mirror of
https://github.com/cssgunc/compass.git
synced 2025-04-16 17:10:15 -04:00
20 lines
384 B
TypeScript
20 lines
384 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;
|