import { Box, Flex, ScrollArea } from "@mantine/core"; import { useEffect, useState } from "react"; interface InternalScreenProps { children: any; } export function InternalScreen(props : InternalScreenProps) { const [scrollAreaHeight, setScrollAreaHeight] = useState(window.innerHeight); useEffect(() => { const handleResize = () => setScrollAreaHeight(window.innerHeight); window.addEventListener("resize", handleResize); handleResize(); return () => window.removeEventListener("resize", handleResize); }, []); return ( {props.children} ); }