import React , { FC } from 'react' ; import { Box , BoxProps } from './core' ; export type PageProps = BoxProps & { default wordyPage ? : boolean ; } ; export const Page = ( { children , wordyPage = false , ... rest } ) => ( < Box flex = "1" marginX = "auto" maxWidth = { wordyPage ? '700px' : '1200px' } paddingX = { [ '1rem' , '1rem' , '2rem' ] } pb = "8" pt = "16" width = "100%" { ... rest } > { children } < /Box>);