2021-05-18 04:32:37 +00:00
|
|
|
import styled from 'styled-components';
|
|
|
|
|
|
|
|
const Wrapper = styled.div<{ open: boolean }>`
|
|
|
|
background-color: #111;
|
|
|
|
color: #fff;
|
|
|
|
min-height: 64px;
|
|
|
|
align-items: center;
|
|
|
|
box-shadow: 0 0 5px rgba(0, 0, 0, 0.7);
|
|
|
|
margin-bottom: 10px;
|
|
|
|
position: fixed;
|
|
|
|
top: 0;
|
|
|
|
width: 100%;
|
2021-05-18 06:52:11 +00:00
|
|
|
z-index: 200;
|
2021-05-18 06:46:50 +00:00
|
|
|
display: ${(props) => (props.open ? 'block' : 'none')};
|
2021-05-18 04:32:37 +00:00
|
|
|
`;
|
|
|
|
|
|
|
|
export default function SearchBar(props) {
|
|
|
|
return <Wrapper {...props}></Wrapper>;
|
|
|
|
}
|