(file: File)
| 26 | const MAX_FILES = 5 |
| 27 | |
| 28 | function isValidFileType(file: File): boolean { |
| 29 | return file.type.startsWith("image/") || isPdfFile(file) || isTextFile(file) |
| 30 | } |
| 31 | |
| 32 | function formatFileSize(bytes: number): string { |
| 33 | const mb = bytes / 1024 / 1024 |
no test coverage detected