import { observer } from 'mobx-react-lite'; import { AppState } from '@/ui_models/app_state'; import { PasswordWizardType } from '@/types'; import { WebApplication } from '@/ui_models/application'; type Props = { email: string; server: string | undefined; appState: AppState; application: WebApplication; closeAccountMenu: () => void; } const User = observer(({ email, server, appState, application, closeAccountMenu }: Props) => { const openPasswordWizard = () => { closeAccountMenu(); application.presentPasswordWizard(PasswordWizardType.ChangePassword); }; const openSessionsModal = () => { closeAccountMenu(); appState.openSessionsModal(); }; return (