zepio/app/components/layout.js

24 lines
460 B
JavaScript
Raw Normal View History

// @flow
import React from 'react';
import styled from 'styled-components';
const Layout = styled.div`
2018-12-10 16:40:17 -08:00
display: flex;
flex-direction: column;
width: 100%;
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>;
};