import { FC , ReactNode } from 'react' ; import { Container } from '@mui/material' ; import PropTypes from 'prop-types' ; import { styled } from '@mui/material/styles' ; import { Box } from '@mui/material' ; const PageTitle = styled ( Box ) ( ( { theme } ) => `
        padding: ${ theme . spacing ( 4 , 0 ) };
` ) ; interface PageTitleWrapperProps { children ? : ReactNode ; } const PageTitleWrapper = ( { children } ) => { return ( < > < PageTitle > < Container maxWidth = "lg" > { children } < /Container> < /PageTitle> < />); } ; PageTitleWrapper . propTypes = { children : PropTypes . node . isRequired } ; export default PageTitleWrapper ;