The open alternative to Salesforce, designed for AI.
TypeScript crmcrm-systemcustomergood-first-issuegraphqlhacktoberfestjavascriptmarketingmonoreponestjsopen-sourcepostgresqlreactreactjssalestypescriptweb
import { FileUploadContext } from '@/file-upload/contexts/FileUploadContext';
import { useContext } from 'react';
import { doNotTranslate } from 'twenty-shared/i18n';
export const useFileUpload = () => {
const context = useContext(FileUploadContext);
if (!context) {
throw new Error(
doNotTranslate('useFileUpload must be used within a FileUploadProvider'),
);
}
return context;
};