import data from '../../utils/data'; import { PayPalCheckbox, PayPalRdb, handleCheckboxState } from './Fields'; const SelectBox = ( props ) => { let boxClassName = 'ppcp-r-select-box'; if ( props.value === props.currentValue || ( Array.isArray( props.currentValue ) && props.currentValue.includes( props.value ) ) ) { boxClassName += ' selected'; } return (
{ props.type === 'radio' && ( ) } { props.type === 'checkbox' && ( ) }
{ props.title }

{ props.description }

{ props.children && (
{ props.children }
) }
); }; export default SelectBox;