Search.js 468 Bytes
Newer Older
1
2
import styles from "./search.module.scss";

3
4
const Search = ({ type }) => {
    console.log("type==",type)
5
6
    return (
        <div className="d-flex">
7
8
            <input className="form-control" type="text" id={type === "home" ? styles.searchWhite : styles.search} />
            <i className={`bi bi-search align-self-center ${type === "home" ? "text-white" : "mx-1"} ${styles.icon}`} style={{ fontSize: "1.3rem" }}></i>
9
10
11
12
13
        </div>
    )
}

export default Search