create layout and heading components

This commit is contained in:
fmtabbara
2024-12-12 23:25:23 +00:00
committed by Yana
parent 74538ac652
commit 571b83d74d
2 changed files with 9 additions and 1 deletions
+2 -1
View File
@@ -1,4 +1,5 @@
import { Header } from "@/components/header";
import { Wrapper } from "@/components/wrapper";
import ThemeProvider from "@/providers/ThemeProvider";
import type { Metadata } from "next";
@@ -17,7 +18,7 @@ export default function RootLayout({
<body>
<ThemeProvider>
<Header />
{children}
<Wrapper>{children}</Wrapper>
</ThemeProvider>
</body>
</html>
@@ -0,0 +1,7 @@
import { Typography } from "@mui/material";
const SectionHeading = ({ title }: { title: string }) => {
return <Typography variant="h2">{title}</Typography>;
};
export default SectionHeading;