UNPKG

@fakel/rest-admin

Version:

An application that makes it easier to work with your API

25 lines (24 loc) 828 B
import React from 'react'; import { DataProviderT, GetListResponse } from '../../@types/dataProvider'; import { OnOK } from './GalleryFooter'; export declare type UploadHandler = (files: File | File[]) => any; export declare type Pagination = { page: number; perPage: number; }; export declare type GetImagesFunction = (dataProvider: DataProviderT, params?: { pagination?: Pagination; }) => GetListResponse | Promise<GetListResponse>; export declare type GalleryProps = { resource?: string; getImages?: GetImagesFunction; defaultPerPage?: number; uploadHandler: UploadHandler; isMultiple?: boolean; buttonText?: string; onOk: OnOK; isVisible: boolean; showSelectAll?: boolean; setVisible: (isVisible: boolean) => void; }; export declare const Gallery: React.FC<GalleryProps>;