kcscDev/egovframe-template-simple-r.../src/components/EgovRadioButtonGroup.jsx

22 lines
629 B
JavaScript

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;