zepio/app/components/layout.js

27 lines
522 B
JavaScript
Raw Normal View History

// @flow
import React from 'react';
import styled from 'styled-components';
const Layout = styled.div`
display: flex;
flex-direction: column;
position: absolute;
width: calc(100vw - 200px);
left: 200px;
top: 0;
height: 100vh;
2018-12-04 20:26:03 -08:00
background: ${props => props.theme.colors.secondary};
`;
type Props = {
chidren: any, // eslint-disable-line
};
export const LayoutComponent = (props: Props) => {
// $FlowFixMe
const { children } = props; // eslint-disable-line
2018-12-03 11:27:56 -08:00
return <Layout>{children}</Layout>;
};