diff --git a/src/components/nostr/NotificationsCenter.tsx b/src/components/nostr/NotificationsCenter.tsx index 772a8cb..71bfc29 100644 --- a/src/components/nostr/NotificationsCenter.tsx +++ b/src/components/nostr/NotificationsCenter.tsx @@ -1,5 +1,5 @@ import { Bell, BellRing, Heart, MessageCircle, Repeat2, UserPlus, Zap } from 'lucide-react'; -import { useState } from 'react'; +import { useState, type ComponentProps } from 'react'; import { Button } from '@/components/ui/button'; import { Popover, @@ -98,16 +98,24 @@ function useNotificationState() { : null; } -function NotificationButton({ unreadCount }: { unreadCount: number }) { +function NotificationButton({ + unreadCount, + className, + ...props +}: { unreadCount: number } & ComponentProps<'button'>) { const label = unreadCount > 0 ? `Notifications, ${unreadCount > 99 ? '99 or more' : unreadCount} unread` : 'Notifications, no unread notifications'; return (