import React from 'react' ; import * as styles from './Page.css' ; import { Box } from '../../lib/Box/Box' ; import { BoxProps } from '../../lib/Box/types' ; interface PageProps { component ? : BoxProps [ 'component' ] ; } export const Page = ( { component = 'main' , children } ) => ( < Box className = { styles . container } component = { component } > { children } < /Box>);