import { createElement, Component } from '@wordpress/element' import classnames from 'classnames' const ImagePicker = ({ option: { choices, tabletChoices, mobileChoices }, option, device, value, onChange }) => { const { className, ...attr } = { ...(option.attr || {}) } let deviceChoices = option.choices if (device === 'tablet' && tabletChoices) { deviceChoices = tabletChoices } if (device === 'mobile' && mobileChoices) { deviceChoices = mobileChoices } return ( ) } export default ImagePicker