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