import { ScanSettingsModal } from "./modals/ScanSettingsModal";
import { ScanReviewQueueModal } from "./modals/ScanReviewQueueModal";
import { ScanSummaryModal } from "./modals/ScanSummaryModal";
import type { ScanModalsSectionProps } from "./types";

// Diagnostics + crop/OCR details moved to the dedicated Diagnose view; only the
// core workspace modals live here.
export function ScanModalsSection({
  latestCapture,
  settingsOpen,
  reviewQueueOpen,
  controller,
  setSettingsOpen,
  setReviewQueueOpen,
  setScanSummary,
}: ScanModalsSectionProps) {
  return (
    <>
      <ScanSettingsModal
        open={settingsOpen}
        latestCapture={latestCapture}
        controller={controller}
        setSettingsOpen={setSettingsOpen}
      />
      <ScanReviewQueueModal
        open={reviewQueueOpen}
        controller={controller}
        setReviewQueueOpen={setReviewQueueOpen}
      />
      <ScanSummaryModal
        open={Boolean(controller.scanSummary)}
        controller={controller}
        setScanSummary={setScanSummary}
        devMode={controller.devMode}
      />
    </>
  );
}
