diff --git a/src/components/cases/status-tab.tsx b/src/components/cases/status-tab.tsx index d5bd569..1b08177 100644 --- a/src/components/cases/status-tab.tsx +++ b/src/components/cases/status-tab.tsx @@ -6,11 +6,12 @@ import { Label } from "@/components/ui/label"; import { Textarea } from "@/components/ui/textarea"; import { supabase } from "@/integrations/supabase/client"; import { useAuth } from "@/lib/auth"; -import { Plus, Trash2, Loader2 } from "lucide-react"; +import { Plus, Trash2, Loader2, FileDown } from "lucide-react"; import { formatDateTime } from "@/lib/format"; import { toast } from "sonner"; +import { downloadStatusReport } from "@/lib/status-pdf"; -export function CaseStatusTab({ caseId }: { caseId: string }) { +export function CaseStatusTab({ caseId, caseLabel }: { caseId: string; caseLabel?: string }) { const { user, isAdmin } = useAuth(); const [items, setItems] = useState([]); const [showForm, setShowForm] = useState(false);