import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
import * as React from 'react';
import { Switch } from '@gravity-ui/uikit';
import { Row } from "./Row.js";
export const SwitchSettings = ({ field, updateField, commonRows, whenEditorSection, }) => (_jsxs(React.Fragment, { children: [commonRows, _jsx(Row, { label: "Default", children: _jsx(Switch, { checked: Boolean(field.defaultValue), onUpdate: (value) => updateField(field.id, { defaultValue: value }) }) }), whenEditorSection] }));
//# sourceMappingURL=SwitchSettings.js.map
