mirror of
https://github.com/randyjc/Rahoot.git
synced 2026-03-13 20:15:35 +01:00
34 lines
1.0 KiB
TypeScript
34 lines
1.0 KiB
TypeScript
import Toaster from "@rahoot/web/components/Toaster"
|
|
import BrandingHelmet from "@rahoot/web/components/BrandingHelmet"
|
|
import ThemeHydrator from "@rahoot/web/components/ThemeHydrator"
|
|
import { SocketProvider } from "@rahoot/web/contexts/socketProvider"
|
|
import type { Metadata } from "next"
|
|
import { Montserrat } from "next/font/google"
|
|
import { PropsWithChildren } from "react"
|
|
import "./globals.css"
|
|
|
|
const montserrat = Montserrat({
|
|
variable: "--font-montserrat",
|
|
subsets: ["latin"],
|
|
})
|
|
|
|
export const metadata: Metadata = {
|
|
title: "Rahoot !",
|
|
icons: "/icon.svg",
|
|
}
|
|
|
|
const RootLayout = ({ children }: PropsWithChildren) => (
|
|
<html lang="en" suppressHydrationWarning={true} data-lt-installed="true">
|
|
<body className={`${montserrat.variable} bg-secondary antialiased`}>
|
|
<SocketProvider>
|
|
<BrandingHelmet />
|
|
<ThemeHydrator />
|
|
<main className="text-base-[8px] flex flex-col">{children}</main>
|
|
<Toaster />
|
|
</SocketProvider>
|
|
</body>
|
|
</html>
|
|
)
|
|
|
|
export default RootLayout
|