File tree 1 file changed +5
-4
lines changed
1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change 1
1
import { mediaQuery } from "../hooks/media-query" ;
2
- import { FC } from "react" ;
3
- import { Divider , IconButton , Typography } from "@material-ui/core" ;
2
+ import { FC , ReactNode } from "react" ;
3
+ import { Divider , Typography } from "@material-ui/core" ;
4
4
import styled from "styled-components" ;
5
5
6
- import AppIcon from "./AppIcon" ;
7
-
8
6
const Header = styled . div `
9
7
display: flex;
10
8
align-items: center;
@@ -31,12 +29,14 @@ const SidebarWrapper = styled.aside<{ closed: boolean }>`
31
29
export interface SidebarProps {
32
30
open : boolean ;
33
31
title : string ;
32
+ searchBar : ReactNode ;
34
33
onClose : ( ) => void ;
35
34
}
36
35
37
36
export const Sidebar : FC < SidebarProps > = ( {
38
37
children,
39
38
title,
39
+ searchBar,
40
40
onClose,
41
41
open = false ,
42
42
...props
@@ -45,6 +45,7 @@ export const Sidebar: FC<SidebarProps> = ({
45
45
< SidebarWrapper closed = { ! open } { ...props } >
46
46
< Header >
47
47
< Typography variant = "overline" > { title } </ Typography >
48
+ { searchBar }
48
49
</ Header >
49
50
50
51
< Divider />
You can’t perform that action at this time.
0 commit comments