Files
newsletter-hackernews/components/custom/customLink.tsx

17 lines
286 B
TypeScript

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