Files
newsletter-hackernews/components/custom/link.tsx
2023-12-19 19:21:45 +01:00

15 lines
230 B
TypeScript

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