Files
hipmi/src/app/dev/layout.tsx
Bagasbanuna02 f419559379 fix lib
deskripsi:
- pindah lib di dalam app ke src ( lib setara app dan app_modules )
2025-02-12 10:57:10 +08:00

26 lines
521 B
TypeScript

import { funGetUserIdByToken } from "@/app_modules/_global/fun/get";
import { RealtimeProvider } from "../../lib";
import { ServerEnv } from "../../lib/server_env";
export default async function Layout({
children,
}: {
children: React.ReactNode;
}) {
const userId = await funGetUserIdByToken();
return (
<>
<RealtimeProvider
userId={userId}
WIBU_REALTIME_TOKEN={
ServerEnv.value?.NEXT_PUBLIC_WIBU_REALTIME_TOKEN as string
}
/>
{children}
</>
);
}