workspaces_registry_template/site/components/layout.js

17 lines
512 B
JavaScript
Raw Normal View History

2022-12-14 15:03:50 +00:00
// components/layout.js
import Header from './header'
import Footer from './footer'
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 (
<div className='flex flex-col min-h-screen'>
2022-12-14 15:03:50 +00:00
<Header searchText={searchText} changeSearch={changeSearch} />
<main className="grow">{children}</main>
2022-12-14 15:03:50 +00:00
<Footer />
<NotificationContainer/>
</div>
2022-12-14 15:03:50 +00:00
)
}