2022-12-14 15:03:50 +00:00
|
|
|
// components/layout.js
|
|
|
|
|
|
|
|
import Header from './header'
|
|
|
|
import Footer from './footer'
|
2023-01-10 09:41:42 +00:00
|
|
|
import 'react-notifications/lib/notifications.css';
|
|
|
|
import { NotificationContainer } from 'react-notifications';
|
2022-12-14 15:03:50 +00:00
|
|
|
|
|
|
|
export default function Layout({ children, searchText, changeSearch }) {
|
|
|
|
return (
|
2023-02-15 10:24:54 +00:00
|
|
|
<div className='flex flex-col min-h-screen'>
|
2022-12-14 15:03:50 +00:00
|
|
|
<Header searchText={searchText} changeSearch={changeSearch} />
|
2023-02-15 10:24:54 +00:00
|
|
|
<main className="grow">{children}</main>
|
2022-12-14 15:03:50 +00:00
|
|
|
<Footer />
|
2023-01-10 09:41:42 +00:00
|
|
|
<NotificationContainer/>
|
2023-02-15 10:24:54 +00:00
|
|
|
</div>
|
2022-12-14 15:03:50 +00:00
|
|
|
)
|
|
|
|
}
|