Files
beachbums-nft-mint-dapp/components/NextLink.tsx
2021-11-28 01:15:52 +09:00

18 lines
325 B
TypeScript

import Link from 'next/link';
type Props = {
href: string;
className?: string;
'aria-label'?: string;
onClick?: () => void;
children?: React.ReactNode;
};
export default function NextLink({ href, children, ...rest }: Props) {
return (
<Link href={href}>
<a {...rest}>{children}</a>
</Link>
);
}