2024-05-05 14:33:09 -07:00

27 lines
488 B
TypeScript

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