| 1 |
"use strict"; |
| 2 |
Object.defineProperty(exports, "__esModule", { value: true }); |
| 3 |
exports.CompassContent = void 0; |
| 4 |
const tslib_1 = require("tslib"); |
| 5 |
const jsx_runtime_1 = require("react/jsx-runtime"); |
| 6 |
const Drawer_1 = require("../Drawer"); |
| 7 |
const compass_1 = tslib_1.__importDefault(require("@patternfly/react-styles/css/components/Compass/compass")); |
| 8 |
const react_styles_1 = require("@patternfly/react-styles"); |
| 9 |
const CompassContent = (_a) => { |
| 10 |
var { children, className, drawerProps, drawerContent } = _a, props = tslib_1.__rest(_a, ["children", "className", "drawerProps", "drawerContent"]); |
| 11 |
const hasDrawer = drawerContent !== undefined; |
| 12 |
const compassContent = ((0, jsx_runtime_1.jsx)("div", Object.assign({ className: (0, react_styles_1.css)(compass_1.default.compassContent, className) }, props, { children: children }))); |
| 13 |
if (hasDrawer) { |
| 14 |
return ((0, jsx_runtime_1.jsx)(Drawer_1.Drawer, Object.assign({ isPill: true }, drawerProps, { children: (0, jsx_runtime_1.jsx)(Drawer_1.DrawerContent, { panelContent: drawerContent, children: compassContent }) }))); |
| 15 |
} |
| 16 |
return compassContent; |
| 17 |
}; |
| 18 |
exports.CompassContent = CompassContent; |
| 19 |
exports.CompassContent.displayName = 'CompassContent'; |
| 20 |
//# sourceMappingURL=CompassContent.js.map |