pronounss/frontend/components/BlueLink.tsx

15 lines
288 B
TypeScript
Raw Normal View History

2022-08-17 03:04:06 +02:00
import Link from "next/link";
export type Props = {
to: string;
children?: React.ReactNode;
};
export default function BlueLink({ to, children }: Props) {
return (
2022-11-19 16:52:52 +01:00
<Link href={to} className="hover:underline text-sky-500 dark:text-sky-400">
{children}
2022-08-17 03:04:06 +02:00
</Link>
);
}