| 1 |
import styles from '@patternfly/react-styles/css/components/Menu/menu'; |
| 2 |
import { css } from '@patternfly/react-styles'; |
| 3 |
|
| 4 |
export interface MenuFooterProps extends React.HTMLProps<HTMLDivElement> { |
| 5 |
/** Content rendered inside the footer */ |
| 6 |
children?: React.ReactNode; |
| 7 |
/** Additional classes added to the footer */ |
| 8 |
className?: string; |
| 9 |
} |
| 10 |
|
| 11 |
export const MenuFooter: React.FunctionComponent<MenuFooterProps> = ({ |
| 12 |
children, |
| 13 |
className = '', |
| 14 |
...props |
| 15 |
}: MenuFooterProps) => ( |
| 16 |
<div {...props} className={css(styles.menuFooter, className)}> |
| 17 |
{children} |
| 18 |
</div> |
| 19 |
); |
| 20 |
|
| 21 |
MenuFooter.displayName = 'MenuFooter'; |