(file: File)
| 219 | * Validate that a file is within the size limit. |
| 220 | */ |
| 221 | export const isValidFileSize = (file: File): boolean => |
| 222 | file.size <= MAX_SCREENSHOT_SIZE; |
| 223 | |
| 224 | /** |
| 225 | * Pull the first image out of a paste event's clipboard payload. |