import React, { useId } from "react"; import { Box, Paper } from "@mui/material"; import { PageHeader } from "./PageLayout"; import { StackLanguageToggle } from "./AppShell"; import { useI18n } from "../i18n/I18nProvider"; // Public auth pages own their forms, commands and token lifecycles. export default function AuthPageFrame({ title, description, children }: { title: string; description?: string; children: React.ReactNode; }) { const titleId = useId(); const { language, setLocalLanguage } = useI18n(); return ( header": { flexWrap: "nowrap", gap: 1 }, "& > header > div:last-child": { flexShrink: 0 }, }}> } /> {children} ); }