Files
hipmi/src/app/layout.tsx
Bagasbanuna02 370e3ec4e4 fix: Upload image
Deskripsi:
- Upload image job di arahkan ke storage server
## No Issue
2024-09-13 16:12:42 +08:00

22 lines
468 B
TypeScript

import MqttLoader from "@/util/mqtt_loader";
import RootStyleRegistry from "./emotion";
import "./globals.css";
import { TokenProvider } from "./lib/token";
const token = process.env.WS_APIKEY;
export default function RootLayout({
children,
}: {
children: React.ReactNode;
}) {
if (!token) return <>require token</>;
return (
<RootStyleRegistry>
<MqttLoader />
<TokenProvider token={token} />
{children}
</RootStyleRegistry>
);
}