import { type CSSProperties, type ReactNode } from "react" import { cn } from "@/lib/utils" import { type UtilityWindowPage, UTILITY_WINDOW_BASELINES, } from "./constants" interface UtilityWindowLayoutProps { page: UtilityWindowPage children: ReactNode className?: string shellClassName?: string } function buildUtilityWindowLayoutStyle( page: UtilityWindowPage ): CSSProperties { const baseline = UTILITY_WINDOW_BASELINES[page] return { "--app-utility-shell-width": `${baseline.width}px`, "--app-utility-shell-height": `${baseline.height}px`, } as CSSProperties } export function UtilityWindowLayout({ page, children, className, shellClassName, }: UtilityWindowLayoutProps) { return (
{children}
) }