| 1 |
"use strict"; |
| 2 |
Object.defineProperty(exports, "__esModule", { value: true }); |
| 3 |
exports.Masthead = void 0; |
| 4 |
const tslib_1 = require("tslib"); |
| 5 |
const jsx_runtime_1 = require("react/jsx-runtime"); |
| 6 |
const react_1 = require("react"); |
| 7 |
const masthead_1 = tslib_1.__importDefault(require("@patternfly/react-styles/css/components/Masthead/masthead")); |
| 8 |
const react_styles_1 = require("@patternfly/react-styles"); |
| 9 |
const util_1 = require("../../helpers/util"); |
| 10 |
const PageContext_1 = require("../Page/PageContext"); |
| 11 |
const Masthead = (_a) => { |
| 12 |
var { children, className, display = { |
| 13 |
md: 'inline' |
| 14 |
}, inset, variant = 'default' } = _a, props = tslib_1.__rest(_a, ["children", "className", "display", "inset", "variant"]); |
| 15 |
const { width, getBreakpoint } = (0, react_1.useContext)(PageContext_1.PageContext); |
| 16 |
return ((0, jsx_runtime_1.jsx)("header", Object.assign({ className: (0, react_styles_1.css)(masthead_1.default.masthead, variant === 'docked' && masthead_1.default.modifiers.docked, (0, util_1.formatBreakpointMods)(display, masthead_1.default, 'display-', getBreakpoint(width)), (0, util_1.formatBreakpointMods)(inset, masthead_1.default, '', getBreakpoint(width)), className) }, props, { children: children }))); |
| 17 |
}; |
| 18 |
exports.Masthead = Masthead; |
| 19 |
exports.Masthead.displayName = 'Masthead'; |
| 20 |
//# sourceMappingURL=Masthead.js.map |