| 1 |
import { css } from '@patternfly/react-styles'; |
| 2 |
import styles from '@patternfly/react-styles/css/components/ModalBox/modal-box'; |
| 3 |
|
| 4 |
/** Renders content in the footer of the modal */ |
| 5 |
|
| 6 |
export interface ModalFooterProps { |
| 7 |
/** Content rendered inside the modal footer. */ |
| 8 |
children?: React.ReactNode; |
| 9 |
/** Additional classes added to the modal footer. */ |
| 10 |
className?: string; |
| 11 |
} |
| 12 |
|
| 13 |
export const ModalFooter: React.FunctionComponent<ModalFooterProps> = ({ |
| 14 |
children, |
| 15 |
className, |
| 16 |
...props |
| 17 |
}: ModalFooterProps) => ( |
| 18 |
<footer {...props} className={css(styles.modalBoxFooter, className)}> |
| 19 |
{children} |
| 20 |
</footer> |
| 21 |
); |
| 22 |
ModalFooter.displayName = 'ModalFooter'; |