All files / app/components PageContainer.tsx

100% Statements 4/4
100% Branches 0/0
100% Functions 1/1
100% Lines 3/3

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 152x       4x             49x      
import { Container, ContainerProps } from "@mui/material";
 
// The platform-standard content width, used by the "standard" layout variant
// in AppRoute and by PageContainer below.
export const STANDARD_PAGE_MAX_WIDTH = "lg" as const;
 
/**
 * Container capped at the platform-standard page width. Pages that opt out of
 * the standard layout variant (e.g. "full-width" for a full-bleed hero) should
 * wrap their non-full-bleed content in this instead of hardcoding a width.
 */
export default function PageContainer(props: Omit<ContainerProps, "maxWidth">) {
  return <Container maxWidth={STANDARD_PAGE_MAX_WIDTH} {...props} />;
}