This repository has been archived on 2022-08-14. You can view files and clone it, but cannot push or open issues or pull requests.
Files
outline/app/components/CenteredContent/CenteredContent.js
2017-11-19 20:16:49 -08:00

28 lines
454 B
JavaScript

// @flow
import React from 'react';
import styled from 'styled-components';
type Props = {
children?: React.Element<any>,
};
const Container = styled.div`
width: 100%;
margin: 60px;
`;
const Content = styled.div`
max-width: 46em;
margin: 0 auto;
`;
const CenteredContent = ({ children, ...rest }: Props) => {
return (
<Container {...rest}>
<Content>{children}</Content>
</Container>
);
};
export default CenteredContent;