import { CenteredFill } from "@/base/components/containers"; import { EnteLogo } from "@/base/components/EnteLogo"; import { NavbarBase } from "@/base/components/Navbar"; import { Paper, Stack, styled, Typography } from "@mui/material"; /** * An ad-hoc component that abstracts the layout common to many of the pages * exported by the the accounts package. * * The layout is roughly: * - Set height to 100vh * - An app bar at the top * - Center a {@link Paper} in the rest of the space. * - The children passed to this component go within this {@link Paper}. * * {@link AccountsPageTitle} and {@link AccountsPageFooter} are meant to be used * in tandem with, as children of, {@link AccountsPageContents}. */ export const AccountsPageContents: React.FC = ({ children, }) => ( theme.applyStyles("light", { borderBottomColor: "stroke.base", }), ]} > theme.applyStyles("dark", { bgcolor: "background.default", }), ]} > {children} ); const AccountsPagePaper = styled(Paper)(({ theme }) => ({ marginBlock: theme.spacing(2), padding: theme.spacing(4, 2), width: "min(375px, 80vw)", minHeight: "375px", display: "flex", flexDirection: "column", gap: theme.spacing(4), })); export const AccountsPageTitle: React.FC = ({ children, }) => ( {children} ); export const AccountsPageFooter: React.FC = ({ children, }) => ( {children} );