import classNames from "classnames"; import { ReactNode } from "react"; import { Transition } from "@/components/Transition"; import { useIsMobile } from "@/hooks/useIsMobile"; interface Props { children?: ReactNode; show?: boolean; className?: string; height?: number; width?: number; active?: boolean; // true if a child view is loaded } export function OverlayPage(props: Props) { const { isMobile } = useIsMobile(); const width = !isMobile ? `${props.width}px` : "100%"; return (
{props.children}
); }