forked from devsonket/devsonket.github.io
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathview.js
More file actions
27 lines (23 loc) · 602 Bytes
/
Copy pathview.js
File metadata and controls
27 lines (23 loc) · 602 Bytes
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
import React from "react"
import styled from "@emotion/styled"
import Top from "./top"
import SearchResult from "./searchresult"
import { Container } from "./common"
const ViewContainer = styled.div`
display: flex;
flex-wrap: wrap;
& > div {
flex-grow: 1;
border-radius: 3px;
box-shadow: 0 1px 1px rgba(102, 119, 136, 0.55);
overflow: hidden;
text-shadow: 0 1px 1px rgba(51, 68, 85, 0.5);
}
`
export default ({ input }) => (
<Container>
<ViewContainer className="top">
{input ? <SearchResult input={input} /> : <Top />}
</ViewContainer>
</Container>
)