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

27 lines (26 loc) 746 B
/// <reference types="react" /> import { File } from '../types/File'; 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 ID of the selected connector, for example "google-drive" */ serviceId: 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; } declare const FilesContainer: ({ appId, consumerId, jwt, serviceId, onSelect }: Props) => JSX.Element; export default FilesContainer;