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-18 15:26:52 +01:00
|
|
|
<Link href={to}>
|
|
|
|
<a className="hover:underline text-sky-500 dark:text-sky-400">
|
|
|
|
{children}
|
|
|
|
</a>
|
2022-08-17 03:04:06 +02:00
|
|
|
</Link>
|
|
|
|
);
|
|
|
|
}
|