UNPKG

@patternfly/react-core

Version:

This library provides a set of common React components for use with the PatternFly reference implementation.

14 lines 1.02 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.NotificationDrawer = void 0; const tslib_1 = require("tslib"); const React = tslib_1.__importStar(require("react")); const notification_drawer_1 = tslib_1.__importDefault(require("@patternfly/react-styles/css/components/NotificationDrawer/notification-drawer")); const react_styles_1 = require("@patternfly/react-styles"); const NotificationDrawerBase = (_a) => { var { children, className = '', innerRef } = _a, props = tslib_1.__rest(_a, ["children", "className", "innerRef"]); return (React.createElement("div", Object.assign({ ref: innerRef }, props, { className: react_styles_1.css(notification_drawer_1.default.notificationDrawer, className) }), children)); }; exports.NotificationDrawer = React.forwardRef((props, ref) => (React.createElement(NotificationDrawerBase, Object.assign({ innerRef: ref }, props)))); exports.NotificationDrawer.displayName = 'NotificationDrawer'; //# sourceMappingURL=NotificationDrawer.js.map