mirror of
https://github.com/cssgunc/compass.git
synced 2025-04-20 18:40:17 -04:00
22 lines
491 B
TypeScript
22 lines
491 B
TypeScript
import React, { ReactNode } from "react";
|
|
|
|
interface Link {
|
|
onClick?: (event: React.MouseEvent<HTMLAnchorElement>) => void;
|
|
href?: string;
|
|
children: ReactNode;
|
|
}
|
|
|
|
const InlineLink: React.FC<Link> = ({ href = "#", children, onClick }) => {
|
|
return (
|
|
<a
|
|
onClick={onClick}
|
|
href={href}
|
|
className="text-sm text-purple-600 hover:underline font-semibold"
|
|
>
|
|
{children}
|
|
</a>
|
|
);
|
|
};
|
|
|
|
export default InlineLink;
|