Changeset View
Changeset View
Standalone View
Standalone View
web/types/nav-types.js
// @flow | // @flow | ||||
import type { BaseNavInfo } from 'lib/types/nav-types.js'; | import type { BaseNavInfo } from 'lib/types/nav-types.js'; | ||||
import type { ThreadInfo } from 'lib/types/thread-types.js'; | import type { ThreadInfo } from 'lib/types/thread-types.js'; | ||||
export type NavigationTab = 'calendar' | 'chat' | 'apps' | 'settings'; | export type NavigationTab = 'calendar' | 'chat' | 'settings'; | ||||
export type NavigationSettingsSection = 'account' | 'danger-zone'; | export type NavigationSettingsSection = 'account' | 'danger-zone'; | ||||
export type NavigationChatMode = 'view' | 'create'; | export type NavigationChatMode = 'view' | 'create'; | ||||
export type NavInfo = { | export type NavInfo = { | ||||
...$Exact<BaseNavInfo>, | ...$Exact<BaseNavInfo>, | ||||
+tab: NavigationTab, | +tab: NavigationTab, | ||||
+activeChatThreadID: ?string, | +activeChatThreadID: ?string, | ||||
+pendingThread?: ThreadInfo, | +pendingThread?: ThreadInfo, | ||||
+settingsSection?: NavigationSettingsSection, | +settingsSection?: NavigationSettingsSection, | ||||
+selectedUserList?: $ReadOnlyArray<string>, | +selectedUserList?: $ReadOnlyArray<string>, | ||||
+chatMode?: NavigationChatMode, | +chatMode?: NavigationChatMode, | ||||
}; | }; |