import { Tooltip, TooltipContent, TooltipTrigger } from '@renderer/components/ui/tooltip'; import { MessageSquare } from 'lucide-react'; interface UnreadCommentsBadgeProps { unreadCount: number; totalCount: number; pulseKey?: number; } export const UnreadCommentsBadge = ({ unreadCount, totalCount, pulseKey, }: UnreadCommentsBadgeProps): React.JSX.Element | null => { if (totalCount === 0) return null; const shouldPulse = (pulseKey ?? 0) > 0; return ( {totalCount} {unreadCount > 0 ? ( {unreadCount} ) : null} {unreadCount > 0 ? `${unreadCount} unread comments, ${totalCount} total` : `${totalCount} comments`} ); };