import { Box, Text, TextAttributes, useUiHost } from "../../../ui"; import { colors } from "../../../theme/colors"; import { t, tf } from "../../../i18n"; import type { AccountOutcome } from "../../../plugins/builtin/cloud/auth-model"; export function AccountSignedInPanel({ outcome }: { outcome: AccountOutcome | null }) { const email = outcome?.email ?? ""; const desktop = useUiHost().kind === "desktop-web"; return ( {"✓ "} {email ? tf("Signed in as {email}", { email }) : t("Signed in to Gloom Cloud")} {outcome?.mode === "signup" ? t("We sent a verification link to your inbox.") : t("Portfolios, watchlists and layouts sync to this account.")} ); }