import { FormLabel } from '@automattic/components'; import clsx from 'clsx'; import PropTypes from 'prop-types'; import FormRadio from 'calypso/components/forms/form-radio'; import FormRadioWithThumbnail from 'calypso/components/forms/form-radio-with-thumbnail'; import './style.scss'; const FormRadiosBar = ( { isThumbnail, checked, onChange, items, disabled } ) => { return (
{ items.map( ( item, i ) => isThumbnail ? ( ) : ( ) ) }
); }; FormRadiosBar.propTypes = { isThumbnail: PropTypes.bool, checked: PropTypes.string, onChange: PropTypes.func, items: PropTypes.array.isRequired, }; export default FormRadiosBar;