import * as React from 'react' ; import * as bem from 'b_' ; import './Page.css' ; type Props = { children : React . ReactNode [ ] | React . ReactNode ; align : string ; mix ? : string ; } ; const b = bem . with ( 'page' ) ; function Page ( props ) { const { align , children , mix } = props ; const cls = `${ b ( { align } ) } ${ mix }` ; return < div className = { cls } > { children } < /div>; } Page . defaultProps = { align : 'center' , mix : '' , } ; export { Page } ;