import React from "react"; import clsx from "clsx"; export interface FileInputProps extends Omit, "type" | "id"> { inputId?: string; labelText: string; color?: string; className?: string; } const FileInput: React.FC = (props) => { const { inputId, labelText, color, className, ...otherProps } = props; const realInputId = React.useMemo(() => { if (inputId != null) return inputId; return ( "file-input-" + (((1 + Math.random()) * 0x10000) | 0).toString(16).substring(1) ); }, [inputId]); return ( <> ); }; export default FileInput;