import { ApplicationEvidenceFilePreview } from "./ApplicationEvidenceFilePreview";
import { Button } from "@/components/ui/button";
import type { EvidenceItemMeta, ServerEvidenceKind } from "@/lib/applicationEvidenceApi";

export type ApplicationEvidenceViewerPanelProps = {
  caseId: string;
  kind: ServerEvidenceKind;
  kindLabel: string;
  meta: EvidenceItemMeta;
  onClose: () => void;
};

/**
 * Right-hand panel: preview (PDF / image / download fallback) and quick actions.
 */
export function ApplicationEvidenceViewerPanel({
  caseId,
  kind,
  kindLabel,
  meta,
  onClose: _onClose,
}: ApplicationEvidenceViewerPanelProps) {
  return (
    <div className="flex h-full min-h-0 min-w-0 flex-col overflow-hidden bg-muted/5">
      
      <div className="min-h-0 flex-1 overflow-hidden">
        <ApplicationEvidenceFilePreview
          meta={meta}
          contentProxy={{ caseId, kind }}
          title={meta.originalName || kindLabel}
          className="h-full min-h-[200px]"
        />
      </div>
    </div>
  );
}
