import { useGitStatus } from '@/hooks/useGitStatus'; import { cn } from '@/lib/utils'; interface GitStatusIndicatorProps { projectId: string | null; className?: string; } export function GitStatusIndicator({ projectId, className }: GitStatusIndicatorProps) { const { data: gitStatus } = useGitStatus(projectId); // Only show the indicator if we're in a git repo and have uncommitted changes if (!gitStatus?.isGitRepo || !gitStatus?.hasUncommittedChanges) { return null; } return (
); }