1 | import { __rest } from "tslib";
|
2 | import * as React from 'react';
|
3 | import styles from '@patternfly/react-styles/css/components/Drawer/drawer';
|
4 | import { css } from '@patternfly/react-styles';
|
5 | import { DrawerMain } from './DrawerMain';
|
6 | import { DrawerColorVariant } from './Drawer';
|
7 | export const DrawerContent = (_a) => {
|
8 | var {
|
9 |
|
10 | className = '', children, panelContent, colorVariant = DrawerColorVariant.default } = _a, props = __rest(_a, ["className", "children", "panelContent", "colorVariant"]);
|
11 | const drawerContentRef = React.useRef();
|
12 | return (React.createElement(DrawerMain, null,
|
13 | React.createElement("div", Object.assign({ className: css(styles.drawerContent, colorVariant === DrawerColorVariant.light200 && styles.modifiers.light_200, className), ref: drawerContentRef }, props), children),
|
14 | panelContent && React.cloneElement(panelContent, { drawerContentRef })));
|
15 | };
|
16 | DrawerContent.displayName = 'DrawerContent';
|
17 |
|
\ | No newline at end of file |