apps/meteor/client/views/room/composer/messageBox/MessageBoxActionsToolbar/hooks/useFileUploadAction.ts
Function useFileUploadAction
has 34 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export const useFileUploadAction = (disabled: boolean): GenericMenuItemProps => {
const t = useTranslation();
const fileUploadEnabled = useSetting<boolean>('FileUpload_Enabled');
const fileInputRef = useFileInput(fileInputProps);
const chat = useChat();