"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var _reactI18next = require("react-i18next");
var _react = _interopRequireDefault(require("react"));
var _RadioButtonWrap = require("./RadioButtonWrap");
var _jsxRuntime = require("react/jsx-runtime");
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
const RadioButton = ({
  label,
  checked,
  onClick
}) => {
  const {
    t
  } = (0, _reactI18next.useTranslation)();
  return /*#__PURE__*/(0, _jsxRuntime.jsx)(_RadioButtonWrap.RadioButtonWrap, {
    children: /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
      className: "radioButtonContainer",
      onClick: onClick,
      children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
        className: "radioContainer",
        children: checked && /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
          className: "radio"
        })
      }), /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
        className: "labelSpan",
        children: t(label)
      })]
    })
  });
};
var _default = RadioButton;
exports.default = _default;