import {RadioControl} from '@wordpress/components'; import FieldControl from '../components/FieldControl'; const RadioField = ( {field, value, onChange} ) => { // Transform the options in the format expected by RadioControl const radioOptions = Object.entries( field.options || {} ).map( ( [optionValue, optionLabel] ) => ({ value: optionValue, label: optionLabel }) ); return ( onChange( field.id, newValue )} /> ); }; export default RadioField;