import { Button } from "@ariakit/react"; import { cx } from "../class-names.ts"; import { Letterhead, LetterheadHeading, LetterheadParagraph, } from "../Letterhead/index.tsx"; import { LetterheadHeader } from "../LetterheadForm/index.tsx"; import { useAppActions } from "../store/index.tsx"; import type { CurrentUser } from "../types.ts"; import { accountPicker } from "./style.css.ts"; export function UserMismatchView(props: { serverUser: CurrentUser; localUser: CurrentUser; reload: () => void; }) { const { localUser, serverUser, reload } = props; const { clientLogout, serverLogout } = useAppActions(); return ( User mismatch You are logged into Indie Tabletop Club as {serverUser.email} , but locally stored data belong to {localUser.email}. Which account do you want to use?
); }