workspaces_registry_template/site/pages/_app.js
2022-12-14 15:03:50 +00:00

21 lines
468 B
JavaScript

import '../styles/globals.css'
import Layout from '../components/layout'
import { useState, useEffect } from 'react'
function MyApp({ Component, pageProps }) {
const [searchText, setSearchText] = useState('')
const changeSearch = event => {
setSearchText(event.target.value)
}
return (
<Layout searchText={searchText} changeSearch={changeSearch}>
<Component searchText={searchText} {...pageProps} />
</Layout>
)
}
export default MyApp