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 (
|
|
|
|
<>
|
|
|
|
<Header searchText={searchText} changeSearch={changeSearch} />
|
|
|
|
<main>{children}</main>
|
|
|
|
<Footer />
|
2023-01-10 09:41:42 +00:00
|
|
|
<NotificationContainer/>
|
2022-12-14 15:03:50 +00:00
|
|
|
</>
|
|
|
|
)
|
|
|
|
}
|