1 | "use strict";
|
2 | Object.defineProperty(exports, "__esModule", { value: true });
|
3 | exports.FormSection = void 0;
|
4 | const tslib_1 = require("tslib");
|
5 | const React = tslib_1.__importStar(require("react"));
|
6 | const form_1 = tslib_1.__importDefault(require("@patternfly/react-styles/css/components/Form/form"));
|
7 | const react_styles_1 = require("@patternfly/react-styles");
|
8 | const FormSection = (_a) => {
|
9 | var { className = '', children, title = '', titleElement: TitleElement = 'div' } = _a, props = tslib_1.__rest(_a, ["className", "children", "title", "titleElement"]);
|
10 | return (React.createElement("section", Object.assign({}, props, { className: react_styles_1.css(form_1.default.formSection, className) }),
|
11 | title && React.createElement(TitleElement, { className: react_styles_1.css(form_1.default.formSectionTitle, className) }, title),
|
12 | children));
|
13 | };
|
14 | exports.FormSection = FormSection;
|
15 | exports.FormSection.displayName = 'FormSection';
|
16 |
|
\ | No newline at end of file |