Files
newsletter-hackernews/components/custom/customLink.tsx
2024-01-25 18:12:37 +01:00

16 lines
272 B
TypeScript

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>
);
}