This is called in the useThumbail hook. Adding webp support for thumbnails in the admin Thumbnail component.
4 lines
168 B
TypeScript
4 lines
168 B
TypeScript
export default function isImage(mimeType: string): boolean {
|
|
return ['image/jpeg', 'image/png', 'image/gif', 'image/svg+xml', 'image/webp'].indexOf(mimeType) > -1;
|
|
}
|