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; appState: AppState; application: WebApplication; closeAccountMenu: () => void; } const User = observer(({ email, appState, application, closeAccountMenu }: Props) => { const { server } = appState.accountMenu; const openPasswordWizard = () => { closeAccountMenu(); application.presentPasswordWizard(PasswordWizardType.ChangePassword); }; const openSessionsModal = () => { closeAccountMenu(); appState.openSessionsModal(); }; return (