import { jsx as _jsx } from "react/jsx-runtime";
import { Switch } from '@gravity-ui/uikit';
import { formGeneratorCn } from "../../../utils/cn.js";
import FieldBase from "../../FieldBase/FieldBase.js";
import './Boolean.css';
const b = formGeneratorCn('boolean-dynamic-field');
const BooleanDynamicField = ({ title, value, onUpdate, className }) => {
    return (_jsx(FieldBase, { title: title, className: b(null, className), onRefresh: onUpdate, children: _jsx(Switch, { className: b('switch'), checked: Boolean(value), onUpdate: onUpdate }) }));
};
export default BooleanDynamicField;
//# sourceMappingURL=Boolean.js.map
