diff --git a/src/components/DownloadLink.tsx b/src/components/DownloadLink.tsx new file mode 100644 index 0000000..906dc40 --- /dev/null +++ b/src/components/DownloadLink.tsx @@ -0,0 +1,22 @@ +import { memo } from 'react' +import { Button, ButtonProps } from 'antd' +import { FileWordOutlined } from '@ant-design/icons' + +import { FileInfoDto } from '@api' +import { downloadFile } from './factory' + +export type DownloadLinkProps = ButtonProps & { + file?: FileInfoDto + name?: string +} + +export const DownloadLink = memo(({ file, name, ...other }) => ( + +)) + +export default DownloadLink