zepio/app/components/layout.js

24 lines
460 B
JavaScript

// @flow
import React from 'react';
import styled from 'styled-components';
const Layout = styled.div`
display: flex;
flex-direction: column;
width: 100%;
height: 100vh;
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
return <Layout>{children}</Layout>;
};