Initial commit
This commit is contained in:
17
site/components/layout.js
Normal file
17
site/components/layout.js
Normal file
@@ -0,0 +1,17 @@
|
||||
// components/layout.js
|
||||
|
||||
import Header from './header'
|
||||
import Footer from './footer'
|
||||
import 'react-notifications/lib/notifications.css';
|
||||
import { NotificationContainer } from 'react-notifications';
|
||||
|
||||
export default function Layout({ children, searchText, changeSearch }) {
|
||||
return (
|
||||
<div className='flex flex-col min-h-screen'>
|
||||
<Header searchText={searchText} changeSearch={changeSearch} />
|
||||
<main className="grow">{children}</main>
|
||||
<Footer />
|
||||
<NotificationContainer/>
|
||||
</div>
|
||||
)
|
||||
}
|
||||
Reference in New Issue
Block a user