"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const tslib_1 = require("tslib");
const jsx_runtime_1 = require("react/jsx-runtime");
const uikit_1 = require("@gravity-ui/uikit");
const cn_1 = require("../../../utils/cn.js");
const FieldBase_1 = tslib_1.__importDefault(require("../../FieldBase/FieldBase.js"));
const b = (0, cn_1.formGeneratorCn)('boolean-dynamic-field');
const BooleanDynamicField = ({ title, value, onUpdate, className }) => {
    return ((0, jsx_runtime_1.jsx)(FieldBase_1.default, { title: title, className: b(null, className), onRefresh: onUpdate, children: (0, jsx_runtime_1.jsx)(uikit_1.Switch, { className: b('switch'), checked: Boolean(value), onUpdate: onUpdate }) }));
};
exports.default = BooleanDynamicField;
//# sourceMappingURL=Boolean.js.map
