pollo/app/(client)/layout.tsx
2023-09-24 23:49:24 -06:00

16 lines
332 B
TypeScript

"use client";
import { AblyProvider } from "ably/react";
import * as Ably from "ably";
export default function RootLayout({
children,
}: {
children: React.ReactNode;
}) {
const client = new Ably.Realtime.Promise({
authUrl: "/api/internal/ably",
});
return <AblyProvider client={client}>{children}</AblyProvider>;
}