import { useRef, useEffect } from "kaioken" import { Board } from "./components/Board" import { useGlobal } from "./state/global" export function BoardPage({ params }: { params: Record }) { const rootElementRef = useRef(null) const { setRootElement } = useGlobal() useEffect(() => { if (!rootElementRef.current) return setRootElement(rootElementRef.current) }, [rootElementRef.current]) const { boardId } = params return (
) }