import * as React from 'react'; import { css } from '@patternfly/react-styles'; import styles from '@patternfly/react-styles/css/components/OverflowMenu/overflow-menu'; import { OverflowMenuContext } from './OverflowMenuContext'; export interface OverflowMenuContentProps extends React.HTMLProps { /** Any elements that can be rendered in the menu */ children?: any; /** Additional classes added to the OverflowMenuContent */ className?: string; /** Modifies the overflow menu content visibility */ isPersistent?: boolean; } export const OverflowMenuContent: React.FunctionComponent = ({ className, children, isPersistent }: OverflowMenuContentProps) => ( {(value) => (!value.isBelowBreakpoint || isPersistent) && (
{children}
) } ); OverflowMenuContent.displayName = 'OverflowMenuContent';