diff --git a/web/navigation-panels/topbar.react.js b/web/navigation-panels/topbar.react.js index 42230f9c4..9988e28fc 100644 --- a/web/navigation-panels/topbar.react.js +++ b/web/navigation-panels/topbar.react.js @@ -1,42 +1,51 @@ // @flow import * as React from 'react'; import { useModalContext } from 'lib/components/modal-provider.react.js'; import SWMansionIcon from 'lib/components/SWMansionIcon.react.js'; import AppSwitcher from './app-switcher.react.js'; +import NavStateInfoBar from './nav-state-info-bar.react.js'; import css from './topbar.css'; import Button from '../components/button.react.js'; import AppsDirectory from '../modals/apps/apps-directory-modal.react.js'; +import { useDrawerSelectedThreadID } from '../selectors/thread-selectors.js'; +import { useThreadInfoForPossiblyPendingThread } from '../utils/thread-utils.js'; function Topbar(): React.Node { const { pushModal } = useModalContext(); const onClickApps = React.useCallback( () => pushModal(), [pushModal], ); const appNavigationItem = React.useMemo( () => ( ), [onClickApps], ); + const activeChatThreadID = useDrawerSelectedThreadID(); + const threadInfo = useThreadInfoForPossiblyPendingThread(activeChatThreadID); + return ( -
-
- + <> + +
+
+ +
+ {appNavigationItem}
- {appNavigationItem} -
+ ); } const MemoizedTopbar: React.ComponentType<{}> = React.memo<{}>(Topbar); export default MemoizedTopbar;