import { createElement, Component, Fragment } from '@wordpress/element' import classnames from 'classnames' import { __ } from 'ct-i18n' import _ from 'underscore' import { applyFilters } from '@wordpress/hooks' const ALLOWED_MEDIA_TYPES = ['image'] export default class MultiImageUploader extends Component { params = { height: 250, width: 250, flex_width: true, flex_height: true, } state = { attachment_info: [], } getUrlFor = (attachmentInfo) => attachmentInfo ? (attachmentInfo.width < 700 ? attachmentInfo.sizes.full : _.max( _.values( _.keys(attachmentInfo.sizes).length === 1 ? attachmentInfo.sizes : _.omit(attachmentInfo.sizes, 'full') ), ({ width }) => width ) ).url || attachmentInfo.url : null render() { const actions = applyFilters( 'blocksy.options.ct-multi-image-uploader.actions', [ ({ props, attachment: { attachment_id } }) => ( ), ] ) return (