import { RadioButton } from "@progress/kendo-react-inputs";

const RadioGroupView = (props: any) => {
  return props.groupList.map((groupItem: any) => (
    <div key={groupItem.id}>
      <RadioButton
        {...groupItem}
        checked={props.value !== undefined ? props.value === groupItem.value : false}
      />
    </div>
  ));
};
export default RadioGroupView;