| 1 |
import styles from '@patternfly/react-styles/css/components/Popover/popover'; |
| 2 |
import { css } from '@patternfly/react-styles'; |
| 3 |
|
| 4 |
export interface PopoverFooterProps extends React.HTMLProps<HTMLDivElement> { |
| 5 |
/** Additional classes added to the Popover footer */ |
| 6 |
className?: string; |
| 7 |
/** Footer node */ |
| 8 |
children: React.ReactNode; |
| 9 |
} |
| 10 |
|
| 11 |
export const PopoverFooter: React.FunctionComponent<PopoverFooterProps> = ({ |
| 12 |
children, |
| 13 |
className = '', |
| 14 |
...props |
| 15 |
}: PopoverFooterProps) => ( |
| 16 |
<footer className={css(styles.popoverFooter, className)} {...props}> |
| 17 |
{children} |
| 18 |
</footer> |
| 19 |
); |
| 20 |
PopoverFooter.displayName = 'PopoverFooter'; |