import React from 'react'; import { Clipboard } from 'lucide-react'; interface ClipboardEvent { timestamp: Date; field: string; length: number; } interface ClipboardBadgeProps { events: ClipboardEvent[]; onOpenClipboardModal: () => void; // New prop } const ClipboardBadge: React.FC = ({ events, onOpenClipboardModal }) => { const count = events.length; // Determine badge style based on clipboard count const badgeStyle = count === 0 ? "text-[#39ff14] bg-[#39ff14]/10 border-[#39ff14]/20" // Safe : count < 5 ? "text-[#ff006e] bg-[#ff006e]/10 border-[#ff006e]/30 font-semibold" // Warning : "text-[#ff006e] bg-[#ff006e]/10 border-[#ff006e]/30 font-bold animate-pulse"; // Danger return ( ); }; export default ClipboardBadge;