| 1 |
"use strict"; |
| 2 |
Object.defineProperty(exports, "__esModule", { value: true }); |
| 3 |
exports.OverflowMenuItem = 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 overflow_menu_1 = tslib_1.__importDefault(require("@patternfly/react-styles/css/components/OverflowMenu/overflow-menu")); |
| 8 |
const OverflowMenuContext_1 = require("./OverflowMenuContext"); |
| 9 |
const OverflowMenuItem = ({ className, children, isPersistent = false }) => ((0, jsx_runtime_1.jsx)(OverflowMenuContext_1.OverflowMenuContext.Consumer, { children: (value) => (isPersistent || !value.isBelowBreakpoint) && ((0, jsx_runtime_1.jsxs)("div", { className: (0, react_styles_1.css)(overflow_menu_1.default.overflowMenuItem, className), children: [" ", children, " "] })) })); |
| 10 |
exports.OverflowMenuItem = OverflowMenuItem; |
| 11 |
exports.OverflowMenuItem.displayName = 'OverflowMenuItem'; |
| 12 |
//# sourceMappingURL=OverflowMenuItem.js.map |