feat: download

- able to download file from express
This commit is contained in:
cv
2021-05-26 23:10:00 +02:00
parent 250946fdc6
commit b61a82627e
6 changed files with 63 additions and 0 deletions
@@ -0,0 +1,18 @@
import { IconButton } from '@chakra-ui/button';
import { FiDownload } from 'react-icons/fi';
export default function DownloadIconBtn(props) {
const { clickhandler, ...rest } = props;
return (
<IconButton
size={props.size || 'xs'}
icon={<FiDownload />}
isRound
variant='outline'
onClick={clickhandler}
_focus={{ boxShadow: 'none' }}
colorScheme='whiteAlpha'
{...rest}
/>
);
}