Debian Codegraph @

node/@patternfly/react-core/dist/esm/components/Compass/CompassContent.js

raw
1 import { __rest } from "tslib";
2 import { jsx as _jsx } from "react/jsx-runtime";
3 import { Drawer, DrawerContent } from '../Drawer';
4 import styles from '@patternfly/react-styles/css/components/Compass/compass.mjs';
5 import { css } from '@patternfly/react-styles';
6 export const CompassContent = (_a) => {
7 var { children, className, drawerProps, drawerContent } = _a, props = __rest(_a, ["children", "className", "drawerProps", "drawerContent"]);
8 const hasDrawer = drawerContent !== undefined;
9 const compassContent = (_jsx("div", Object.assign({ className: css(styles.compassContent, className) }, props, { children: children })));
10 if (hasDrawer) {
11 return (_jsx(Drawer, Object.assign({ isPill: true }, drawerProps, { children: _jsx(DrawerContent, { panelContent: drawerContent, children: compassContent }) })));
12 }
13 return compassContent;
14 };
15 CompassContent.displayName = 'CompassContent';
16 //# sourceMappingURL=CompassContent.js.map