mirror of
https://github.com/tabler/tabler.git
synced 2026-08-07 03:42:27 +04:00
8962710163
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
19 lines
557 B
Plaintext
19 lines
557 B
Plaintext
---
|
|
// Separate component so drainPageModals() executes only at this point of the
|
|
// render stream (after the page content render has STARTED — registrations are
|
|
// synchronous, modal content may be a promise).
|
|
import { drainPageModals } from '@shared/lib/page-modals'
|
|
|
|
const modals = await Promise.all(drainPageModals())
|
|
---
|
|
|
|
{
|
|
modals.length > 0 && (
|
|
<Fragment>
|
|
<Fragment set:html={'<!-- BEGIN PAGE MODALS -->'} />
|
|
<Fragment set:html={modals.join('\n')} />
|
|
<Fragment set:html={'<!-- END PAGE MODALS -->'} />
|
|
</Fragment>
|
|
)
|
|
}
|