"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.FieldHeader = void 0;
const jsx_runtime_1 = require("react/jsx-runtime");
const uikit_1 = require("@gravity-ui/uikit");
const cn_1 = require("../../utils/cn.js");
const b = (0, cn_1.formBuilderCn)('field-header');
const FieldHeader = ({ title, onRemove, variant = 'subheader-2', buttonSize = 's', }) => ((0, jsx_runtime_1.jsxs)("div", { className: b(), children: [(0, jsx_runtime_1.jsx)(uikit_1.Text, { variant: variant, children: title }), (0, jsx_runtime_1.jsx)(uikit_1.Button, { view: "flat-danger", size: buttonSize, onClick: onRemove, children: "Remove" })] }));
exports.FieldHeader = FieldHeader;
//# sourceMappingURL=FieldHeader.js.map
