-
Notifications
You must be signed in to change notification settings - Fork 89
Expand file tree
/
Copy pathRootLayout.jsx
More file actions
executable file
·44 lines (40 loc) · 1.15 KB
/
RootLayout.jsx
File metadata and controls
executable file
·44 lines (40 loc) · 1.15 KB
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
36
37
38
39
40
41
42
43
44
import { Suspense } from 'react';
import { Outlet } from 'react-router-dom';
import { ToastContainer } from 'react-toastify';
import 'react-toastify/dist/ReactToastify.css';
import SEO from '../components/SEO';
import TopFooter from '../components/Footer';
import MainHeader from '../components/Header';
import Loader from '../components/Loader';
function RootLayout() {
return (
<>
<MainHeader />
<main className="mt-[84px] min-h-screen">
<SEO
title="CoreX Nutrition"
description="CoreX Nutrition official site — explore accessibility, policies, and open-source projects."
keywords="CoreX Nutrition, Open Source, Accessibility"
/>
{/* Sets page-specific title/meta */}
<Suspense fallback={<Loader />}>
<Outlet />
</Suspense>
</main>
<TopFooter />
{/* <Footer /> */}
<ToastContainer
position="top-right"
autoClose={5000}
hideProgressBar={false}
newestOnTop={false}
closeOnClick
rtl={false}
pauseOnFocusLoss
draggable
pauseOnHover
/>
</>
);
}
export default RootLayout;