import { EModelEndpoint, supportsFiles } from 'librechat-data-provider'; import { AttachmentIcon } from '~/components/svg'; import { FileUpload } from '~/components/ui'; import { useFileHandling } from '~/hooks'; export default function AttachFile({ endpoint, disabled = false, }: { endpoint: EModelEndpoint | ''; disabled?: boolean | null; }) { const { handleFileChange } = useFileHandling(); if (!supportsFiles[endpoint]) { return null; } return (
); }