import React, { Suspense } from "react"; import { useLocation } from "react-router-dom"; import clsx from "clsx"; import { HvContainer } from "@hitachivantara/uikit-react-core"; import Loading, { LoadingProps } from "components/layout/Loading"; import { isTopLevelPage } from "lib/utils/navigation"; import useStyles from "./styles"; interface ContainerProps { fullScreen?: boolean; maxWidth?: "xs" | "sm" | "md" | "lg" | "xl" | false; children: NonNullable; className?: string; loadingProps?: LoadingProps; } const Container: React.FC = ({ fullScreen = false, maxWidth = false, children, className, loadingProps, }) => { const classes = useStyles(); const { pathname } = useLocation(); const hasSecondLevel = !isTopLevelPage(pathname); return (
}> {children}
); }; export default Container;