import { createElement, Component } from '@wordpress/element' import classnames from 'classnames' export default class Radio extends Component { renderAsText() {} renderAsRadio() { const { inline = false } = this.props.option return (
{Object.keys(this.props.option.choices).map(choice => ( ))}
) } render() { if (this.props.option.view === 'radio') { return this.renderAsRadio() } const { inline = false } = this.props.option return ( ) } }