Files
newsletter-hackernews/components/custom/link.tsx
2023-12-05 20:13:29 +01:00

16 lines
278 B
TypeScript

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