: LayoutSettings; currentUser?: API.CurrentUser; collapsed?: boolean | undefined fetchUserInfo?: () => Promise<API.CurrentUser | undefined>; }> { const fetchUserInfo = async () => { try { const currentUser = await queryCurrent(); return currentUser; } catch (error) { history.push('...