1
0
Fork 1
mirror of https://github.com/thatmattlove/hyperglass.git synced 2026-04-19 06:18:27 +00:00
thatmattlove-hyperglass/hyperglass/ui/components/footer/link.tsx

13 lines
423 B
TypeScript

import { Button, Link, useBreakpointValue } from '@chakra-ui/react';
import type { TFooterLink } from './types';
export const FooterLink: React.FC<TFooterLink> = (props: TFooterLink) => {
const { title } = props;
const btnSize = useBreakpointValue({ base: 'xs', lg: 'sm' });
return (
<Button as={Link} isExternal size={btnSize} variant="ghost" aria-label={title} {...props}>
{title}
</Button>
);
};