import React from "react"; import "./Radio.scss"; import classNames from "classnames"; import ErrProtecter from "../../../utils/errProtect"; type IProps = { id: string; groupName: string; label?: string; disabled?: boolean; selectedValue?: any; onChange?(foo?: any): void; value?: any; checked?: boolean; } const JDradio: React.FC = ({ id, disabled, groupName, label, onChange, value, selectedValue, checked = false }) => { const handleRadioChange = () => { if (!disabled) { onChange && onChange(value); } }; const classes = classNames({ JDradio__input: true, "JDradio__input--gap": true }); return ( ); }; export default ErrProtecter(JDradio);