Files
newsletter-hackernews/components/CustomLink.tsx
2024-11-23 13:01:48 +01:00

18 lines
347 B
TypeScript

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