import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
import { Button, Text } from '@gravity-ui/uikit';
import { formBuilderCn } from "../../utils/cn.js";
import './FieldHeader.css';
const b = formBuilderCn('field-header');
export const FieldHeader = ({ title, onRemove, variant = 'subheader-2', buttonSize = 's', }) => (_jsxs("div", { className: b(), children: [_jsx(Text, { variant: variant, children: title }), _jsx(Button, { view: "flat-danger", size: buttonSize, onClick: onRemove, children: "Remove" })] }));
//# sourceMappingURL=FieldHeader.js.map
