"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.SwitchSettings = void 0;
const tslib_1 = require("tslib");
const jsx_runtime_1 = require("react/jsx-runtime");
const React = tslib_1.__importStar(require("react"));
const uikit_1 = require("@gravity-ui/uikit");
const Row_1 = require("./Row.js");
const SwitchSettings = ({ field, updateField, commonRows, whenEditorSection, }) => ((0, jsx_runtime_1.jsxs)(React.Fragment, { children: [commonRows, (0, jsx_runtime_1.jsx)(Row_1.Row, { label: "Default", children: (0, jsx_runtime_1.jsx)(uikit_1.Switch, { checked: Boolean(field.defaultValue), onUpdate: (value) => updateField(field.id, { defaultValue: value }) }) }), whenEditorSection] }));
exports.SwitchSettings = SwitchSettings;
//# sourceMappingURL=SwitchSettings.js.map
