UNPKG

@hhgtech/hhg-components

Version:
9 lines (8 loc) 383 B
import { ChangeEvent } from 'react'; export declare const useImagePicker: (imageFilesProp?: (File | string)[], onImageFilesChange?: (f: (File | string)[]) => void) => { onSelectImages: (e: ChangeEvent<HTMLInputElement>) => void; onRemoveImage: (index: number) => void; onRemoveAllImages: () => void; imageSrcs: string[]; imageFiles: (string | File)[]; };