2022-10-21 17:44:22 +03:00
|
|
|
|
import type { NextPage } from 'next'
|
|
|
|
|
import Head from 'next/head'
|
|
|
|
|
import Image from 'next/image'
|
|
|
|
|
import styles from '../styles/Home.module.css'
|
2022-10-22 00:34:07 +03:00
|
|
|
|
import { Search } from '../сomponents/search'
|
|
|
|
|
import 'antd/dist/antd.css';
|
|
|
|
|
import { useState } from 'react'
|
|
|
|
|
import { TagSearch } from '../сomponents/tagSearch'
|
2022-10-21 17:44:22 +03:00
|
|
|
|
|
|
|
|
|
const Home: NextPage = () => {
|
2022-10-22 00:34:07 +03:00
|
|
|
|
const [goods, setGoods] = useState([])
|
2022-10-21 17:44:22 +03:00
|
|
|
|
return (
|
|
|
|
|
<div className={styles.container}>
|
2022-10-22 00:34:07 +03:00
|
|
|
|
<Search onData={(data)=>setGoods(data)}></Search>
|
|
|
|
|
<div>{goods}</div>
|
|
|
|
|
<TagSearch onData={(data)=>setGoods(data)}></TagSearch>
|
2022-10-21 17:44:22 +03:00
|
|
|
|
</div>
|
|
|
|
|
)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export default Home
|