-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlayout.tsx
32 lines (29 loc) · 832 Bytes
/
layout.tsx
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
"use client";
import "@/styles/globals.css";
import * as React from "react";
import { Header, ToastMessage } from "@/ui_components/shared";
import { WagmiWrapper } from "@/utils/wagmi/WagmiContext";
import { GlobalContextProvider } from "@/store";
export default function RootLayout(props: {
children: React.ReactNode;
widget: React.ReactNode;
}) {
return (
<html lang="en">
<body className="h-full bg-[#191927]">
<GlobalContextProvider>
<WagmiWrapper>
<Header />
<ToastMessage />
<main className={`pt-[92px]`}>
<div className="container mx-auto">
{props.children}
{props.widget}
</div>
</main>
</WagmiWrapper>
</GlobalContextProvider>
</body>
</html>
);
}