(file: File)
| 111 | * Validate that a file is an allowed image type for screenshot upload. |
| 112 | */ |
| 113 | export const isValidImageType = (file: File): boolean => |
| 114 | ['image/png', 'image/jpeg', 'image/jpg', 'image/webp', 'image/gif'].includes( |
| 115 | file.type, |
| 116 | ); |
| 117 | |
| 118 | /** |
| 119 | * Maximum file size for screenshot upload (5MB). |