MCPcopy Create free account
hub / github.com/block/buzz / AppSidebar

Function AppSidebar

desktop/src/features/sidebar/ui/AppSidebar.tsx:169–894  ·  view source on GitHub ↗
({
  activeWorkspace,
  channels,
  currentPubkey,
  fallbackDisplayName,
  homeBadgeCount,
  isAddWorkspaceOpen,
  isLoading,
  isCreatingChannel,
  isCreatingForum,
  isOpeningDm,
  profile,
  relayConnectionCard,
  selfPresenceStatus,
  errorMessage,
  selectedChannelId,
  selectedView,
  unreadChannelCounts,
  unreadChannelIds,
  workspaces,
  onAddWorkspace,
  onAddWorkspaceOpenChange,
  onCreateChannel,
  onCreateForum,
  onOpenAddWorkspace,
  onHideDm,
  onMarkChannelUnread,
  onMarkChannelRead,
  onMarkAllChannelsRead,
  onBrowseChannels,
  onOpenDm,
  onUpdateWorkspace,
  onRemoveWorkspace,
  onCreateAgent,
  onSelectAgents,
  onSelectProjects,
  onSelectPulse,
  onSelectWorkflows,
  onSelectHome,
  onSelectChannel,
  onOpenSearchResult,
  searchChannels,
  searchFocusRequest,
  onSelectSettings,
  onSetPresenceStatus,
  onSetUserStatus,
  onClearUserStatus,
  onSwitchWorkspace,
  selfUserStatus,
  isPresencePending,
  isNewDmOpen: isNewDmOpenProp,
  onNewDmOpenChange,
  isCreateChannelOpen: isCreateChannelOpenProp,
  onCreateChannelOpenChange,
  mutedChannelIds,
  onMuteChannel,
  onUnmuteChannel,
  starredChannelIds,
  onStarChannel,
  onUnstarChannel,
}: AppSidebarProps)

Source from the content-addressed store, hash-verified

167};
168
169export function AppSidebar({
170 activeWorkspace,
171 channels,
172 currentPubkey,
173 fallbackDisplayName,
174 homeBadgeCount,
175 isAddWorkspaceOpen,
176 isLoading,
177 isCreatingChannel,
178 isCreatingForum,
179 isOpeningDm,
180 profile,
181 relayConnectionCard,
182 selfPresenceStatus,
183 errorMessage,
184 selectedChannelId,
185 selectedView,
186 unreadChannelCounts,
187 unreadChannelIds,
188 workspaces,
189 onAddWorkspace,
190 onAddWorkspaceOpenChange,
191 onCreateChannel,
192 onCreateForum,
193 onOpenAddWorkspace,
194 onHideDm,
195 onMarkChannelUnread,
196 onMarkChannelRead,
197 onMarkAllChannelsRead,
198 onBrowseChannels,
199 onOpenDm,
200 onUpdateWorkspace,
201 onRemoveWorkspace,
202 onCreateAgent,
203 onSelectAgents,
204 onSelectProjects,
205 onSelectPulse,
206 onSelectWorkflows,
207 onSelectHome,
208 onSelectChannel,
209 onOpenSearchResult,
210 searchChannels,
211 searchFocusRequest,
212 onSelectSettings,
213 onSetPresenceStatus,
214 onSetUserStatus,
215 onClearUserStatus,
216 onSwitchWorkspace,
217 selfUserStatus,
218 isPresencePending,
219 isNewDmOpen: isNewDmOpenProp,
220 onNewDmOpenChange,
221 isCreateChannelOpen: isCreateChannelOpenProp,
222 onCreateChannelOpenChange,
223 mutedChannelIds,
224 onMuteChannel,
225 onUnmuteChannel,
226 starredChannelIds,

Callers

nothing calls this directly

Calls 15

useUpdaterContextFunction · 0.90
useSidebarFunction · 0.90
useIsMobileFunction · 0.90
useSidebarScrollLockFunction · 0.90
useDeferredModalOpenFunction · 0.90
useChannelSectionsFunction · 0.90
useLeaveChannelDialogFunction · 0.90
useDeferredLoadFunction · 0.90
useDmSidebarMetadataFunction · 0.90
sortDmChannelsByLabelFunction · 0.90

Tested by

no test coverage detected