import { Container } from '@mui/material'; import { styled } from '@mui/material/styles'; interface PageContainerProps { halfGutters?: boolean; topBottomGutters?: boolean; } export const PageContainer = styled(Container, { shouldForwardProp: (prop) => !['halfGutters', 'topBottomGutters'].includes(prop as string), })( ({ theme, disableGutters, halfGutters, topBottomGutters }) => ({ padding: disableGutters ? 0 : theme.spacing(topBottomGutters ? 1 : 0, halfGutters ? 1.5 : 3), }), );