20 lines
1.0 KiB
TypeScript
20 lines
1.0 KiB
TypeScript
import MailboxPage from "../../../govoplan-mail/webui/src/features/mail/MailboxPage";
|
|
import { generatedTranslations } from "../../../govoplan-mail/webui/src/i18n/generatedTranslations";
|
|
import { PlatformLanguageProvider } from "../src/i18n/LanguageContext";
|
|
import type { AuthInfo } from "../src/types";
|
|
import "../../../govoplan-mail/webui/src/styles/mail-profiles.css";
|
|
|
|
const settings = { apiBaseUrl: "", apiKey: "", accessToken: "" };
|
|
const auth: AuthInfo = {
|
|
user: { id: "mail-tree-user", account_id: "mail-tree-account", email: "mail-tree@example.test" },
|
|
tenant: { id: "mail-tree-tenant", name: "Mail tree fixture", slug: "mail-tree" },
|
|
scopes: ["mail:mailbox:read", "mail:profile:read", "mail:profile:use"],
|
|
roles: [], groups: [], profile_loaded: true, roles_loaded: true, groups_loaded: true
|
|
};
|
|
|
|
export default function MailFolderExplorerScenario() {
|
|
return <PlatformLanguageProvider preferredLanguageCode="en" moduleTranslations={[generatedTranslations]}>
|
|
<MailboxPage settings={settings} auth={auth} />
|
|
</PlatformLanguageProvider>;
|
|
}
|