1 | "use strict";
|
2 | Object.defineProperty(exports, "__esModule", { value: true });
|
3 | exports.Masthead = void 0;
|
4 | const tslib_1 = require("tslib");
|
5 | const React = tslib_1.__importStar(require("react"));
|
6 | const masthead_1 = tslib_1.__importDefault(require("@patternfly/react-styles/css/components/Masthead/masthead"));
|
7 | const react_styles_1 = require("@patternfly/react-styles");
|
8 | const util_1 = require("../../helpers/util");
|
9 | const Page_1 = require("../Page/Page");
|
10 | const Masthead = (_a) => {
|
11 | var { children, className, backgroundColor = 'dark', display = {
|
12 | md: 'inline'
|
13 | }, inset } = _a, props = tslib_1.__rest(_a, ["children", "className", "backgroundColor", "display", "inset"]);
|
14 | const { width, getBreakpoint } = React.useContext(Page_1.PageContext);
|
15 | return (React.createElement("header", Object.assign({ className: react_styles_1.css(masthead_1.default.masthead, util_1.formatBreakpointMods(display, masthead_1.default, 'display-', getBreakpoint(width)), util_1.formatBreakpointMods(inset, masthead_1.default, '', getBreakpoint(width)), backgroundColor === 'light' && masthead_1.default.modifiers.light, backgroundColor === 'light200' && masthead_1.default.modifiers.light_200, className) }, props), children));
|
16 | };
|
17 | exports.Masthead = Masthead;
|
18 | exports.Masthead.displayName = 'Masthead';
|
19 |
|
\ | No newline at end of file |