"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
    return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.Radio = void 0;
const react_1 = __importDefault(require("react"));
const Radio = ({ label, name, onChange, checked, value, }) => {
    const id = name + "-" + label;
    return (react_1.default.createElement("span", { className: "custom-radio" },
        react_1.default.createElement("input", { type: "radio", id: id, name: name, checked: checked, onChange: onChange, value: value }),
        react_1.default.createElement("label", { htmlFor: id }, label)));
};
exports.Radio = Radio;
