Spaces:
Configuration error
Configuration error
Download src/components/link/Link.tsx from hlsitech/hlsitechbot: direct link, hf CLI and curl.
- Browser
- Download file 464 Bytes
-
https://huggingface.co/spaces/hlsitech/hlsitechbot/resolve/main/src/components/link/Link.tsx
- Command line
-
hf download hf://spaces/hlsitech/hlsitechbot/src/components/link/Link.tsx
-
curl -L -o Link.tsx https://huggingface.co/spaces/hlsitech/hlsitechbot/resolve/main/src/components/link/Link.tsx
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; | |