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