mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-06 18:16:38 +08:00
19 lines
481 B
JavaScript
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;
|