import styles from "./search.module.scss"; const Search = ({ type, search, setSearch, handleClick }) => { function handleSearch(e) { const { name, value } = e.target setSearch({ ...search, [name]: value }) } console.log("type==", type) return (
{type === "home" ? null : }
) } export default Search