refactor: improve news and email handling, style, folder structure (#16)
This commit is contained in:
16
components/CustomLink.tsx
Normal file
16
components/CustomLink.tsx
Normal file
@@ -0,0 +1,16 @@
|
||||
'use client';
|
||||
import Link from 'next/link';
|
||||
import { Button } from './Button';
|
||||
|
||||
interface LinkProps {
|
||||
path: string;
|
||||
text: string;
|
||||
}
|
||||
|
||||
export default function CustomLink({ path, text }: LinkProps) {
|
||||
return (
|
||||
<Button asChild>
|
||||
<Link href={path}>{text}</Link>
|
||||
</Button>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user