woocommerce-paypal-payments/modules/ppcp-settings/resources/js/Components/ReusableComponents/Controls/ControlRadioGroup.js
2025-01-23 13:28:57 +01:00

19 lines
481 B
JavaScript

import { PayPalRdbWithContent } from '../Fields';
import { Action } from '../Elements';
const ControlRadioGroup = ( { options, value, onChange } ) => (
<Action>
{ options.map( ( { value: optionValue, label, description } ) => (
<PayPalRdbWithContent
key={ optionValue }
value={ optionValue }
currentValue={ value }
handleRdbState={ onChange }
label={ label }
description={ description }
/>
) ) }
</Action>
);
export default ControlRadioGroup;