import { useEffect, useState } from "preact/hooks"; import { Bell } from "lucide-preact"; import { Button } from "@/components/ui/button"; import { disableAgentBrowserPush, enableAgentBrowserPush, getAgentPushState, observeAgentPush, refreshAgentBrowserPush } from "@/lib/agent-push-browser"; export function AgentNotifications({ onLogout }: { onLogout: () => Promise }) { const [state, setState] = useState(getAgentPushState), [signingOut, setSigningOut] = useState(false); useEffect(() => observeAgentPush(setState), []); return
Agent notifications

{state.message}

{state.error ?

{state.error}

: null}
{state.enabled ? : }
; }