UNPKG

@apideck/file-picker

Version:

A React file picker component that works with the Apideck [File Storage API](https://developers.apideck.com/apis/file-storage/reference).

10 lines (9 loc) 335 B
import { Dispatch, SetStateAction } from 'react'; import { File } from '../types/File'; interface Props { file: File | null; setFile: Dispatch<SetStateAction<File | null>>; onSelect: (file: File) => any; } declare const FileDetails: ({ file, setFile, onSelect }: Props) => JSX.Element; export default FileDetails;