import { MimeTypeRegistry } from '../../../../../../services/MimeTypeRegistry';
export const validateAcceptMeta = (meta) => {
    let result = null;
    const mimeTypeRegistry = MimeTypeRegistry.getInstance();
    const unsupportedExtensions = meta.extensions.filter((extension) => !mimeTypeRegistry.getMimeTypeByExtension(extension));
    if (unsupportedExtensions.length) {
        result = `В accept переданы неподдерживаемые расширения: ${unsupportedExtensions.join(', ')}`;
    }
    return result;
};
