2018-11-23 15:46:06 -08:00
|
|
|
// @flow
|
|
|
|
|
|
|
|
import React from 'react';
|
|
|
|
import styled from 'styled-components';
|
2018-11-28 14:00:25 -08:00
|
|
|
|
|
|
|
const Layout = styled.div`
|
2018-12-10 16:40:17 -08:00
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
2018-12-10 16:11:19 -08:00
|
|
|
width: 100%;
|
2018-11-28 14:00:25 -08:00
|
|
|
height: 100vh;
|
2018-12-04 20:26:03 -08:00
|
|
|
background: ${props => props.theme.colors.secondary};
|
2018-11-28 14:00:25 -08:00
|
|
|
`;
|
2018-11-23 15:46:06 -08:00
|
|
|
|
|
|
|
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>;
|
2018-11-23 15:46:06 -08:00
|
|
|
};
|