import { Button } from '@wordpress/components'; const AstSelectorControl = props => { const { label, description, id, metavalue, choices, } = props; const onValueChange = (value) => { props.onChange( value ); }; if ( ! choices ) { return; } let labelHtml = null; let descriptionHtml = null; if ( label ) { labelHtml = {label}; } if ( description ) { descriptionHtml = {description}; } let optionsHtml = Object.entries( choices ).map( ( [key, data] ) => { let value = data.value; var html = (