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).

37 lines (36 loc) 895 B
import { FC } from 'react'; import { File } from '../types/File'; export interface Props { /** * The ID of your Unify application */ appId: string; /** * The ID of the consumer which you want to fetch files from */ consumerId: string; /** * The JSON Web Token returned from the Create Session call */ jwt: string; /** * The function that gets called when a file is selected */ onSelect: (file: File) => any; /** * Title shown in the modal */ title?: string; /** * Subtitle shown in the modal */ subTitle?: string; /** * File to save. Forces the FilePicker to go in "Upload" mode and select the folder to upload the provided file */ fileToSave: File; } /** * The Apideck File Picker */ export declare const ModalContent: FC<Props>;