c2c1599221
Add dynamic route for clickable tiles Make copy url notification instead of alert Add achitecture to details
17 lines
450 B
JavaScript
17 lines
450 B
JavaScript
// 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 (
|
|
<>
|
|
<Header searchText={searchText} changeSearch={changeSearch} />
|
|
<main>{children}</main>
|
|
<Footer />
|
|
<NotificationContainer/>
|
|
</>
|
|
)
|
|
} |