import * as React from 'react'; import styles from '@patternfly/react-styles/css/components/OptionsMenu/options-menu'; import { css } from '@patternfly/react-styles'; import { Divider } from '../../../components/Divider'; export interface OptionsMenuItemGroupProps extends React.HTMLProps { /** Content to be rendered in the options menu items component */ children?: React.ReactNode; /** Classes applied to root element of the options menu items group */ className?: string; /** Provides an accessible name for the options menu items group */ 'aria-label'?: string; /** Optional title for the options menu items group */ groupTitle?: string | React.ReactNode; /** Flag indicating this options menu items group will be followed by a horizontal separator */ hasSeparator?: boolean; } export const OptionsMenuItemGroup: React.FunctionComponent = ({ className = '', 'aria-label': ariaLabel = '', groupTitle = '', children = null, hasSeparator = false, ...props }: OptionsMenuItemGroupProps) => (
{groupTitle &&

# {groupTitle}

}

{children} {hasSeparator && }

); OptionsMenuItemGroup.displayName = 'OptionsMenuItemGroup';