-
Notifications
You must be signed in to change notification settings - Fork 52
Expand file tree
/
Copy pathLayout.jsx
More file actions
29 lines (27 loc) · 897 Bytes
/
Layout.jsx
File metadata and controls
29 lines (27 loc) · 897 Bytes
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
import React from 'react';
import Header from '../Header/Header';
import Footer from '../Footer/Footer';
import { ThemeProvider } from '../../context/ThemeContext';
/**
* The Layout function is a React component that returns a div with a Header component and the children
* prop
* @returns A div with a header and children.
*/
const Layout = ({ stars, children }) => {
return (
<div className='flex flex-col justify-between min-h-screen font-[poppins]'>
<ThemeProvider>
<Header
notice={"Under Construction"}
/>
<div className='relative'>
<div className="container mx-auto p-4 min-h-screen">
{children}
</div>
</div>
<Footer />
</ThemeProvider>
</div>
);
};
export default Layout;