Welcome to mirror list, hosted at ThFree Co, Russian Federation.
1 2 3 4
import { VALID_IMAGE_FILE_MIMETYPE } from './constants'; export const isValidImage = ({ type }) => (type.match(VALID_IMAGE_FILE_MIMETYPE.regex) || []).length > 0;