({footerButtons})
| 373 | return <Dialog.Body>{children}</Dialog.Body> |
| 374 | } |
| 375 | const DefaultFooter: React.FC<React.PropsWithChildren<DialogProps>> = ({footerButtons}) => { |
| 376 | const {containerRef: footerRef} = useFocusZone({ |
| 377 | bindKeys: FocusKeys.ArrowHorizontal | FocusKeys.Tab, |
| 378 | focusInStrategy: 'closest', |
| 379 | }) |
| 380 | return footerButtons ? ( |
| 381 | <Dialog.Footer ref={footerRef as React.RefObject<HTMLDivElement>}> |
| 382 | <Dialog.Buttons buttons={footerButtons} /> |
| 383 | </Dialog.Footer> |
| 384 | ) : null |
| 385 | } |
| 386 | |
| 387 | const defaultPosition = { |
| 388 | narrow: 'center', |
nothing calls this directly
no test coverage detected