apps/meteor/client/hooks/useSingleFileInput.ts
Function useSingleFileInput
has 44 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export const useSingleFileInput = (
onSetFile: (file: FileList[number], formData: FormData) => void,
fileType = 'image/*',
fileField = 'image',
): [onClick: () => void, reset: () => void] => {