import { Loader2 } from 'lucide-react'; import { useProjectSessionStatus } from '@/hooks/useProjectSessionStatus'; import { cn } from '@/lib/utils'; interface ProjectSessionIndicatorProps { projectId: string; className?: string; } /** * Small indicator that shows if a project has active AI sessions * Positioned as a status badge on the folder icon */ export function ProjectSessionIndicator({ projectId, className }: ProjectSessionIndicatorProps) { const { hasActiveSessions, hasRunningSessions } = useProjectSessionStatus(projectId); if (!hasActiveSessions) { return null; } return (