mirror of
https://github.com/dograh-hq/dograh.git
synced 2026-06-22 08:38:13 +02:00
52 lines
1.2 KiB
TypeScript
52 lines
1.2 KiB
TypeScript
|
|
import "./globals.css";
|
||
|
|
|
||
|
|
import type { Metadata } from "next";
|
||
|
|
import { Geist, Geist_Mono } from "next/font/google";
|
||
|
|
import { Suspense } from "react";
|
||
|
|
|
||
|
|
import PostHogIdentify from "@/components/PostHogIdentify";
|
||
|
|
import SpinLoader from "@/components/SpinLoader";
|
||
|
|
import { Toaster } from "@/components/ui/sonner";
|
||
|
|
import { UserConfigProvider } from "@/context/UserConfigContext";
|
||
|
|
import { AuthProvider } from "@/lib/auth";
|
||
|
|
|
||
|
|
|
||
|
|
const geistSans = Geist({
|
||
|
|
variable: "--font-geist-sans",
|
||
|
|
subsets: ["latin"],
|
||
|
|
});
|
||
|
|
|
||
|
|
const geistMono = Geist_Mono({
|
||
|
|
variable: "--font-geist-mono",
|
||
|
|
subsets: ["latin"],
|
||
|
|
});
|
||
|
|
|
||
|
|
export const metadata: Metadata = {
|
||
|
|
title: "Dograh",
|
||
|
|
description: "Open Source Voice Assistant Workflow Builder",
|
||
|
|
};
|
||
|
|
|
||
|
|
export default function RootLayout({
|
||
|
|
children
|
||
|
|
}: {
|
||
|
|
children: React.ReactNode
|
||
|
|
}) {
|
||
|
|
|
||
|
|
return (
|
||
|
|
<html lang="en">
|
||
|
|
<body
|
||
|
|
className={`${geistSans.variable} ${geistMono.variable} antialiased`}>
|
||
|
|
<AuthProvider>
|
||
|
|
<Suspense fallback={<SpinLoader />}>
|
||
|
|
<UserConfigProvider>
|
||
|
|
<PostHogIdentify />
|
||
|
|
{children}
|
||
|
|
<Toaster />
|
||
|
|
</UserConfigProvider>
|
||
|
|
</Suspense>
|
||
|
|
</AuthProvider>
|
||
|
|
</body>
|
||
|
|
</html>
|
||
|
|
);
|
||
|
|
}
|