2024-10-21 13:57:45 -06:00

25 lines
400 B
TypeScript

"use client"
import { RoomProvider } from "@/liveblocks.config"
export function Room({
id,
children,
}: {
id: string
children: React.ReactNode
}) {
return (
<RoomProvider
id={id}
initialPresence={{
cursor: null,
}}
>
{/* <ClientSideSuspense fallback={<Loading />}> */}
{children}
{/* </ClientSideSuspense> */}
</RoomProvider>
)
}