mirror of
https://github.com/checktheroads/hyperglass
synced 2024-05-11 05:55:08 +00:00
14 lines
423 B
TypeScript
14 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>
|
|
);
|
|
};
|