Created the Root.jsx layout

This commit is contained in:
2023-11-18 17:41:29 +01:00
parent 6430567584
commit 3b308367d2

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>
);
}