aboutsummaryrefslogblamecommitdiffstats
path: root/packages/dev-tools-pages/ts/components/Content.tsx
blob: 506f94fabeee940ce75778d9c5637916fa5760b9 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11


                                       


                                          
 



                  

                            






                               

  
                     
                   




                                 
                                      
                                                   



                     
                    
import * as React from 'react';
import styled from 'styled-components';

import { Beta } from './Typography';
import Container from './Container';
import ContentBlock from './ContentBlock';

const StyledMain =
    styled.div <
    MainProps >
    `
    padding-top: 6.25rem;
    padding-bottom: 6.25rem;
    ${props =>
        props.dark
            ? `
        background-color: #000;
        color: #fff;
    `
            : ''};
`;

interface MainProps {
    dark?: boolean;
    children: React.ReactNode;
}

function Main(props: MainProps) {
    return (
        <StyledMain dark={props.dark}>
            <Container>{props.children}</Container>
        </StyledMain>
    );
}

export default Main;