Debian Codegraph @

node/@patternfly/react-core/dist/js/components/Sidebar/SidebarContent.js

raw
1 "use strict";
2 Object.defineProperty(exports, "__esModule", { value: true });
3 exports.SidebarContent = void 0;
4 const tslib_1 = require("tslib");
5 const jsx_runtime_1 = require("react/jsx-runtime");
6 const react_styles_1 = require("@patternfly/react-styles");
7 const sidebar_1 = tslib_1.__importDefault(require("@patternfly/react-styles/css/components/Sidebar/sidebar"));
8 const SidebarContent = (_a) => {
9 var { className, children, hasNoBackground, hasPadding, backgroundVariant = 'default' } = _a, props = tslib_1.__rest(_a, ["className", "children", "hasNoBackground", "hasPadding", "backgroundVariant"]);
10 return ((0, jsx_runtime_1.jsx)("div", Object.assign({ className: (0, react_styles_1.css)(sidebar_1.default.sidebarContent, hasNoBackground && sidebar_1.default.modifiers.noBackground, hasPadding && sidebar_1.default.modifiers.padding, backgroundVariant !== 'default' && sidebar_1.default.modifiers[backgroundVariant], className) }, props, { children: children })));
11 };
12 exports.SidebarContent = SidebarContent;
13 exports.SidebarContent.displayName = 'SidebarContent';
14 //# sourceMappingURL=SidebarContent.js.map