"use client"; //=========================================== // THIS FILE IS AUTO-GENERATED FROM TEMPLATE. DO NOT EDIT IT DIRECTLY UNLESS YOU ALSO EDIT THE CORRESPONDING FILE IN packages/template //=========================================== import React, { useId } from "react"; import { SsrScript } from "./ssr-layout-effect"; export function MaybeFullPage({ children, fullPage, }: { children: React.ReactNode, fullPage: boolean, size?: number, containerClassName?: string, }) { const uniqueId = useId(); const id = `stack-full-page-container-${uniqueId}`; const scriptString = `(([id]) => { const el = document.getElementById(id); if (!el) { // component is not full page return; } const offset = el.getBoundingClientRect().top + document.documentElement.scrollTop; el.style.minHeight = \`calc(100vh - \${offset}px)\`; })(${JSON.stringify([id])})`; if (fullPage) { return ( <>