UNPKG

@plteam/chat-ui

Version:

CUI Kit is a free and open-source library for creating AI assistant chat interfaces, built with React, Material UI, and TypeScript

13 lines (12 loc) 524 B
import AttachmentModel from '../../../models/AttachmentModel'; export type FileAttachmentConfig = { attachments: AttachmentModel[]; setAttachments: (value: AttachmentModel[]) => void; inputAccept: string; maxCount: number; maxSize: number; acceptableFormatToString: (acceptableFileFormat: string | string[] | undefined) => string; handleFileUpload: (fileList: FileList | null) => void; }; declare const useFileAttachment: () => FileAttachmentConfig; export default useFileAttachment;