22 lines
629 B
React
22 lines
629 B
React
|
|
import React from 'react';
|
||
|
|
|
||
|
|
import EgovRadioButton from 'components/EgovRadioButton';
|
||
|
|
|
||
|
|
function EgovRadioButtonGroup({ name, radioGroup, setValue, setter }) {
|
||
|
|
return (
|
||
|
|
<>
|
||
|
|
{radioGroup.map((radioOption, i) => {
|
||
|
|
return (
|
||
|
|
<EgovRadioButton
|
||
|
|
key={i}
|
||
|
|
name={name}
|
||
|
|
label={radioOption.label}
|
||
|
|
value={radioOption.value}
|
||
|
|
checkedValue={setValue}
|
||
|
|
setter={setter} />)
|
||
|
|
})}
|
||
|
|
</>
|
||
|
|
);
|
||
|
|
}
|
||
|
|
|
||
|
|
export default EgovRadioButtonGroup;
|