Files
newsletter-hackernews/components/CustomLink.tsx

17 lines
292 B
TypeScript

'use client';
import Link from 'next/link';
import { Button } from './Button';
interface LinkProps {
path: string;
text: string;
}
export default function CustomLink({ path, text }: LinkProps) {
return (
<Button asChild>
<Link href={path}>{text}</Link>
</Button>
);
}