15 lines
340 B
TypeScript
15 lines
340 B
TypeScript
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>⬅️ <span className='underline hover:no-underline'>{children}</span></a>
|
||
</Link>
|
||
)
|
||
}
|