forked from oss-slu/lrda_website
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathlayout.tsx
More file actions
35 lines (29 loc) · 868 Bytes
/
layout.tsx
File metadata and controls
35 lines (29 loc) · 868 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
// RootLayout.tsx
import "./globals.css";
import { Inter } from "next/font/google";
import Navbar from "./lib/components/navbar";
import { NextAppDirEmotionCacheProvider } from "tss-react/next/appDir";
import { Toaster } from "@/components/ui/sonner";
import { GoogleMapsProvider } from "./lib/utils/GoogleMapsContext";
const inter = Inter({ subsets: ["latin"] });
import { ReactNode } from "react";
type RootLayoutProps = {
children: ReactNode;
};
const RootLayout: React.FC<RootLayoutProps> = ({ children }) => {
return (
<html lang="en">
<head />
<body>
<GoogleMapsProvider>
<Navbar />
<NextAppDirEmotionCacheProvider options={{ key: "css" }}>
{children}
</NextAppDirEmotionCacheProvider>
<Toaster />
</GoogleMapsProvider>
</body>
</html>
);
}
export default RootLayout;