"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.OverflowMenuItem = void 0;
const tslib_1 = require("tslib");
const React = tslib_1.__importStar(require("react"));
const react_styles_1 = require("@patternfly/react-styles");
const overflow_menu_1 = tslib_1.__importDefault(require("@patternfly/react-styles/css/components/OverflowMenu/overflow-menu"));
const OverflowMenuContext_1 = require("./OverflowMenuContext");
const OverflowMenuItem = ({ className, children, isPersistent = false }) => (React.createElement(OverflowMenuContext_1.OverflowMenuContext.Consumer, null, value => (isPersistent || !value.isBelowBreakpoint) && (React.createElement("div", { className: (0, react_styles_1.css)(overflow_menu_1.default.overflowMenuItem, className) },
    " ",
    children,
    " "))));
exports.OverflowMenuItem = OverflowMenuItem;
exports.OverflowMenuItem.displayName = 'OverflowMenuItem';
//# sourceMappingURL=OverflowMenuItem.js.map