blob: ed598745d98a547f8c5d106c83d069c4721b4420 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
import React from 'react';
import SearchIcon from '@material-ui/icons/Search';
import { InputBase } from '@material-ui/core';
import { makeStyles } from '@material-ui/core/styles';
const useStyles = makeStyles(theme => ({
root: {
background: 'rgba(255, 255, 255, 0.5)',
borderRadius: '2px',
padding: theme.spacing(0.5),
display: 'flex',
alignItems: 'center',
// marginRight: theme.spacing(8),
}
}));
const SearchBar: React.FC = () => {
const classes = useStyles();
return (
<div className={classes.root}>
<SearchIcon />
<InputBase
placeholder="Search..."
/>
</div>
);
};
export default SearchBar;
|