hlsitech's picture
Upload 93 files
7bbd534 verified
raw
history blame contribute delete
464 Bytes
'use client';
import { ButtonProps } from '@chakra-ui/react';
import NextLink, { LinkProps as NextLinkProps } from 'next/link';
import { Button } from '@chakra-ui/react';
type LinkProps = ButtonProps & NextLinkProps;
function Link({ href, children, ...props }: LinkProps) {
return (
<NextLink href={href} passHref legacyBehavior>
<Button as="a" variant="a" {...props}>
{children}
</Button>
</NextLink>
);
}
export default Link;