2022-03-18 16:42:23 +00:00

15 lines
340 B
TypeScript
Raw Permalink Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

import Link from "next/link";
import { PropsWithChildren } from "react";
interface Props {
href: string;
}
export default function BackLink({ children, href }: PropsWithChildren<Props>) {
return (
<Link href={href}>
<a>⬅️&nbsp;&nbsp;<span className='underline hover:no-underline'>{children}</span></a>
</Link>
)
}