import { observer } from 'mobx-react-lite'; import { AppState } from '@/ui_models/app_state'; import { WebApplication } from '@/ui_models/application'; import { User as UserType } from '@standardnotes/snjs'; type Props = { appState: AppState; application: WebApplication; }; const User = observer(({ appState, application }: Props) => { const { server } = appState.accountMenu; const user = application.getUser() as UserType; return (
{appState.sync.errorMessage && (
Sync Unreachable
Hmm...we can't seem to sync your account. The reason:{' '} {appState.sync.errorMessage}
Need help?
)}
{user.email}
{server}
); }); export default User;