aboutsummaryrefslogtreecommitdiff
path: root/src/components/Header/SearchBar.tsx
blob: 182a1a4f9707cf8f5ba840b54606ae35d4894b3c (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
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'
  }
}));

const SearchBar: React.FC = () => {
  const classes = useStyles();

  return (
    <div className={classes.root}>
      <SearchIcon />
      <InputBase
        placeholder="Search..."
      />
    </div>
  );
};


export default SearchBar;