import { Box, IconButton, Input, InputLabel } from '@material-ui/core'; import AddIcon from '@material-ui/icons/Add'; import { makeStyles } from '@material-ui/styles'; import { useRef } from 'react'; import ICON_BUTTON_STYLE from '../../lib/consts/ICON_BUTTON_STYLE'; import { Panel } from '../Panels'; import Spinner from '../Spinner'; import { HeaderText } from '../Text'; const useStyles = makeStyles(() => ({ addFileButton: ICON_BUTTON_STYLE, addFileInput: { display: 'none', }, })); const Files = (): JSX.Element => { const classes = useStyles(); const addFileInputRef = useRef(); // Let the icon button trigger the invisible input element. const onAddFileButtonClick = () => { addFileInputRef.current?.click(); }; return (
); }; export default Files;