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
            <input className="form-control" type="text" id={type === "home" ? styles.searchWhite : styles.search} />
Kim, Subin's avatar
Kim, Subin committed
8
            <i className={`bi bi-search align-self-center ${type === "home" ? "text-white" : "mx-2"} ${styles.icon}`} style={{ fontSize: "1.3rem" }}></i>
9
10
11
12
13
        </div>
    )
}

export default Search