| 157 | if (!hostElement.isConnected) document.body.append(hostElement) |
| 158 | const root = createRoot(hostElement) |
| 159 | const onClose: ConfirmationDialogProps['onClose'] = gesture => { |
| 160 | root.unmount() |
| 161 | if (gesture === 'confirm') { |
| 162 | resolve(true) |
| 163 | } else { |
| 164 | resolve(false) |
| 165 | } |
| 166 | } |
| 167 | root.render( |
| 168 | <ThemeProvider {...themeProps}> |
| 169 | <BaseStyles> |
no test coverage detected