/** * External dependencies */ import classnames from 'classnames'; import withComponentId from '@woocommerce/base-hocs/with-component-id'; /** * Internal dependencies */ import RadioControlOption from './option'; import './style.scss'; const RadioControl = ( { className, componentId, id, selected, onChange, options = [], } ) => { const radioControlId = id || componentId; return ( options.length && (
{ options.map( ( option ) => ( ) ) }
) ); }; export default withComponentId( RadioControl );