'use client';
import { createPortal } from 'react-dom';
import { useFirstRender } from "../../hooks/index.js";
export function Portal({ children }) {
    const firstRender = useFirstRender({ immediatelyRerender: true });
    // Don't render until after hydration
    if (firstRender) {
        return null;
    }
    return createPortal(children, document.body);
}
//# sourceMappingURL=Portal.js.map