import { Box , Center , Container } from '@chakra-ui/react' ; import React from 'react' ; import Header from './Header' ; interface IProps { title : string ; backRoute ? : string ; } const Layout = ( { title , backRoute , children } ) => { return ( < Box height = "100vh" > < Header title = { title } backRoute = { backRoute } / > < Container mt = { 4 } > < Center > { children } < /Center> < /Container> < /Box>); } ; export default Layout ;