style: added shadcn-ui
This commit is contained in:
15
components/custom/link.tsx
Normal file
15
components/custom/link.tsx
Normal file
@@ -0,0 +1,15 @@
|
||||
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>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user