import { Button, Flex, FlexProps } from '@chakra-ui/core'; import { withAnimation } from '~/components'; const AnimatedFlex = withAnimation(Flex); export const FooterButton = (props: IFooterButton) => { const { side, href, ...rest } = props; let buttonProps = Object(); if (typeof href !== 'undefined') { buttonProps = { href, as: 'a', target: '_blank', rel: 'noopener noreferrer' }; } return (