Merge branch 'master' of git.curoverse.com:arvados-workbench2 into 14307-search-basic...
[arvados-workbench2.git] / src / views-components / search-bar / search-bar-autocomplete-view.tsx
1 // Copyright (C) The Arvados Authors. All rights reserved.
2 //
3 // SPDX-License-Identifier: AGPL-3.0
4
5 import * as React from 'react';
6 import { Paper, StyleRulesCallback, withStyles, WithStyles, List } from '@material-ui/core';
7 import { RenderRecentQueries } from '~/views-components/search-bar/search-bar-view';
8
9 type CssRules = 'list';
10
11 const styles: StyleRulesCallback<CssRules> = theme => {
12     return {
13         list: {
14             padding: '0px'
15         }
16     };
17 };
18
19 interface SearchBarAutocompleteViewProps {
20 }
21
22 export const SearchBarAutocompleteView = withStyles(styles)(
23     ({ classes }: SearchBarAutocompleteViewProps & WithStyles<CssRules>) =>
24         <Paper>
25             <List component="nav" className={classes.list}>
26                 <RenderRecentQueries text='AUTOCOMPLETE VIEW' />
27             </List>
28         </Paper>
29 );