import * as React from 'react'; import {get} from 'lodash'; import {Row, RadioButtonInput} from '../../../UI/Form'; import {IEditorFieldProps} from '../../../../interfaces'; interface IProps extends IEditorFieldProps { options: Array; size?: string; noMargin: boolean; } export class EditorFieldRadio extends React.PureComponent { render() { const field = this.props.field; const value = get(this.props.item, field, this.props.defaultValue); const error = get(this.props.errors ?? {}, field); return ( 0 && this.props.invalid} /> ); } }