1 import { c } from 'ttag';
3 import { Icon, ToolbarButton } from '@proton/components';
5 import { useActiveShare } from '../../../../hooks/drive/useActiveShare';
6 import { useFileUploadInput } from '../../../../store';
8 const UploadFileButton = () => {
9 const { activeFolder } = useActiveShare();
14 } = useFileUploadInput(activeFolder.shareId, activeFolder.linkId);
18 <input multiple type="file" ref={fileInput} className="hidden" onChange={handleChange} />
20 data-testid="toolbar-upload-file"
21 icon={<Icon name="file-arrow-in-up" alt={c('Action').t`Upload file`} />}
22 title={c('Action').t`Upload file`}
29 export default UploadFileButton;