import { observer } from 'mobx-react-lite' import { AppState } from '@/UIModels/AppState' import { WebApplication } from '@/UIModels/Application' import { User as UserType } from '@standardnotes/snjs' type Props = { appState: AppState application: WebApplication } const User = ({ 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 observer(User)