mirror of
https://github.com/chriswritescode-dev/opencode-manager.git
synced 2026-12-06 04:44:21 +01:00
Refactor SSE event handling and consolidate notification contexts
This commit is contained in:
1 parent
9851ec06e0
commit
f7fd3176d4
30 files changed
+2226
-988
No files matched your search
@@ -0,0 +1,27 @@
|
||||
import { Bell, HelpCircle } from 'lucide-react'
|
||||
import { PendingActionBadge } from '@/components/ui/pending-action-badge'
|
||||
import { usePermissions, useQuestions } from '@/contexts/EventContext'
|
||||
|
||||
export function PendingActionsGroup() {
|
||||
const { pendingCount: permissionCount, setShowDialog } = usePermissions()
|
||||
const { pendingCount: questionCount, navigateToCurrent } = useQuestions()
|
||||
|
||||
return (
|
||||
<>
|
||||
<PendingActionBadge
|
||||
count={permissionCount}
|
||||
icon={Bell}
|
||||
color="orange"
|
||||
onClick={() => setShowDialog(true)}
|
||||
label="permission"
|
||||
/>
|
||||
<PendingActionBadge
|
||||
count={questionCount}
|
||||
icon={HelpCircle}
|
||||
color="blue"
|
||||
onClick={navigateToCurrent}
|
||||
label="question"
|
||||
/>
|
||||
</>
|
||||
)
|
||||
}
|
||||
Reference in new issue
Block a user