* A modal can contain content.
(props)
| 15 | * A modal can contain content. |
| 16 | */ |
| 17 | function ModalContent(props) { |
| 18 | const { children, className, content, image, scrolling } = props |
| 19 | |
| 20 | const classes = cx( |
| 21 | className, |
| 22 | useKeyOnly(image, 'image'), |
| 23 | useKeyOnly(scrolling, 'scrolling'), |
| 24 | 'content', |
| 25 | ) |
| 26 | const rest = getUnhandledProps(ModalContent, props) |
| 27 | const ElementType = getElementType(ModalContent, props) |
| 28 | |
| 29 | return ( |
| 30 | <ElementType {...rest} className={classes}> |
| 31 | {childrenUtils.isNil(children) ? content : children} |
| 32 | </ElementType> |
| 33 | ) |
| 34 | } |
| 35 | |
| 36 | ModalContent.propTypes = { |
| 37 | /** An element type to render as (string or function). */ |
nothing calls this directly
no test coverage detected
searching dependent graphs…