diff --git a/components/layout/connect-wallet-button.tsx b/components/layout/connect-wallet-button.tsx
index 00614de..bce2f58 100644
--- a/components/layout/connect-wallet-button.tsx
+++ b/components/layout/connect-wallet-button.tsx
@@ -1,7 +1,7 @@
'use client'
import { useState } from 'react'
-import { Check, Copy, LogOut, Loader2, Wallet } from 'lucide-react'
+import { Check, Copy, LogOut, Loader2, Wallet, ExternalLink } from 'lucide-react'
import { Button } from '@/components/ui/button'
import {
Dialog,
@@ -19,7 +19,7 @@ import {
DropdownMenuTrigger,
} from '@/components/ui/dropdown-menu'
import { useWallet } from '@/hooks/use-wallet'
-import { WALLET_OPTIONS } from '@/components/providers/wallet-provider'
+import { WALLET_OPTIONS, ADAPTERS } from '@/components/providers/wallet-provider'
import { shortenAddress } from '@/lib/stream-utils'
import { cn } from '@/lib/utils'
import { toast } from 'sonner'
@@ -114,6 +114,7 @@ export function ConnectWalletButton({ className }: { className?: string }) {
{WALLET_OPTIONS.map((wallet) => {
const isPending = connecting && pendingId === wallet.id
+ const available = ADAPTERS[wallet.id]?.isAvailable() ?? true
return (
)}
+ {!isPending && !available && (
+ wallet.installUrl ? (
+ e.stopPropagation()}
+ className="flex items-center gap-1 rounded-full bg-muted px-2 py-0.5 text-xs text-muted-foreground hover:text-foreground"
+ >
+ Not installed
+
{notification.title}
- {!notification.read && ( - - )} +{notification.body}
{formatTimeAgo(notification.timestamp)}
@@ -37,7 +50,7 @@ function NotificationItem({ export function NotificationBell() { const { address } = useWallet() - const { notifications, unreadCount, markAllRead, clearAll } = useNotifications(address) + const { notifications, unreadCount, markAllRead, clearAll, dismissNotification } = useNotifications(address) const [open, setOpen] = useState(false) const [activeIndex, setActiveIndex] = useState(-1) const ref = useRef