mirror of
https://github.com/codeaashu/claude-code.git
synced 2026-04-08 22:28:48 +03:00
claude-code
This commit is contained in:
25
web/components/notifications/NotificationBadge.tsx
Normal file
25
web/components/notifications/NotificationBadge.tsx
Normal file
@@ -0,0 +1,25 @@
|
||||
"use client";
|
||||
|
||||
import { cn } from "@/lib/utils";
|
||||
|
||||
interface NotificationBadgeProps {
|
||||
count: number;
|
||||
className?: string;
|
||||
}
|
||||
|
||||
export function NotificationBadge({ count, className }: NotificationBadgeProps) {
|
||||
if (count <= 0) return null;
|
||||
|
||||
return (
|
||||
<span
|
||||
className={cn(
|
||||
"absolute -top-1 -right-1 flex items-center justify-center",
|
||||
"min-w-[16px] h-4 px-1 rounded-full",
|
||||
"bg-brand-500 text-white text-[10px] font-bold leading-none",
|
||||
className
|
||||
)}
|
||||
>
|
||||
{count > 99 ? "99+" : count}
|
||||
</span>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user