1
0

Created the Root.jsx layout

This commit is contained in:
Mathias Wagner 2023-11-18 17:41:29 +01:00
parent 6430567584
commit 3b308367d2
Signed by: Mathias
GPG Key ID: B8DC354B0A1F5B44

View File

@ -0,0 +1,24 @@
import Header from "@/common/components/Header";
import "./styles.sass";
import Footer from "@/common/components/Footer";
import {useOutlet} from "react-router";
import Background from "@/common/components/Background";
export const Root = () => {
const outlet = useOutlet();
return (
<div className="root">
<Header />
<main>
{outlet}
</main>
<Footer />
<Background />
</div>
);
}