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