import { Container } from '@mui/material'
import type { ContainerProps } from '@mui/material'

interface MuiContainerProps extends ContainerProps {
  loading?: boolean
}

const MuiContainer: React.FC<React.PropsWithChildren<MuiContainerProps>> = (props) => {
  const { children, loading, ...rest } = props
  return (
    <Container maxWidth="lg" {...rest}>
      <main>{children}</main>
    </Container>
  )
}

export default MuiContainer
