16 lines
312 B
TypeScript
16 lines
312 B
TypeScript
import type { PropsWithChildren } from "react";
|
|
|
|
export default function Link({
|
|
link,
|
|
children,
|
|
}: PropsWithChildren<{ link: string }>) {
|
|
return (
|
|
<a
|
|
className="rounded-md drop-shadow-lg bg-blue-700 px-2 py-1 text-white hover:bg-blue-800"
|
|
href={link}
|
|
>
|
|
{children}
|
|
</a>
|
|
);
|
|
}
|