@hhgtech/hhg-components
Version:
Hello Health Group common components
9 lines (8 loc) • 383 B
TypeScript
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)[];
};