(props)
| 15 | import {useDialog} from '../../src/dialog/useDialog'; |
| 16 | |
| 17 | function Example(props) { |
| 18 | let ref = useRef(); |
| 19 | let {dialogProps, titleProps} = useDialog(props, ref); |
| 20 | return ( |
| 21 | <div ref={ref} {...dialogProps} data-testid="test"> |
| 22 | {props.showTitle && <h2 {...titleProps}>Title</h2>} |
| 23 | {props.children} |
| 24 | </div> |
nothing calls this directly
no test coverage detected