dynamic-modal
Version:
The dynamic-modal is a solution of creation different modals into project using a json configuration file
20 lines (19 loc) • 490 B
TypeScript
import { ChangeEvent, CSSProperties } from 'react';
export interface IFileResult {
name: string;
size: number;
data: string;
}
export interface IInputUpload {
id?: string;
value?: string;
onChange: (event: ChangeEvent<HTMLInputElement> | IFileResult | FileList | null) => void;
accept?: string;
label?: string;
helpText?: string;
style?: CSSProperties;
readAsArrayBuffer?: boolean;
name: string;
disabled?: boolean;
read?: boolean;
}