import * as React from 'react' ; import { usePageInstance , createPortal } from '@remax/runtime' ; export default function Modal ( { children } ) { const inst = usePageInstance ( ) ; return createPortal ( children , inst . modalContainer ) ; }