import React from 'react'; import { FileUpload } from '@patternfly/react-core'; export const SimpleFileUpload: React.FunctionComponent = () => { const [value, setValue] = React.useState(''); const [filename, setFilename] = React.useState(''); const handleFileInputChange = (_, file: File) => { setFilename(file.name); }; const handleClear = (_event: React.MouseEvent) => { setFilename(''); setValue(''); }; return ( ); };