UNPKG

424 BTypeScriptView Raw
1import type { FC, ReactNode } from 'react';
2import { TaskStatus } from './image-uploader';
3import type { ImageProps } from '../image';
4declare type Props = {
5 onClick?: () => void;
6 onDelete?: () => void;
7 deletable: boolean;
8 deleteIcon: ReactNode;
9 url?: string;
10 file?: File;
11 status?: TaskStatus;
12 imageFit: ImageProps['fit'];
13};
14declare const PreviewItem: FC<Props>;
15export default PreviewItem;