1const SearchBar = ({ searchQuery }) =>
2 <Card>
3 <div className={styles.searchFieldContainer}>
4 <div className={styles.field}>
5 <input type="text" onChange={(event)=> searchQuery(event.target.value)} placeholder="Search for items or sellers" />
6 </div>
7 <Button className={styles.searchButton}>
8 Search
9 </Button>
10 </div>
11 </Card>
12
13const mapStateToProps = () => {
14 return {
15
16 }
17}
18
19const mapDispatchToProps = (dispatch) => {
20 return {
21 searchQuery: (val) => dispatch(searchQuery(val))
22 }
23}
24
25export default connect(mapStateToProps, mapDispatchToProps)(SearchBar);