'use client'

import { PaddleDirectStep } from '@/components/ocr-overlay/PaddleDirectStep'

interface StepOcrProps {
  sessionId: string | null
  onNext: () => void
}

/**
 * Step 7: OCR (Kombi mode = PaddleOCR + Tesseract).
 *
 * Phase 1: Uses the existing PaddleDirectStep with kombi endpoint.
 * Phase 3 (later) will add transparent 3-phase progress + engine comparison.
 */
export function StepOcr({ sessionId, onNext }: StepOcrProps) {
  return (
    <PaddleDirectStep
      sessionId={sessionId}
      onNext={onNext}
      endpoint="paddle-kombi"
      title="Kombi-Modus"
      description="PP-OCRv5 und Tesseract laufen parallel. Koordinaten werden gewichtet gemittelt fuer optimale Positionierung."
      icon="🔀"
      buttonLabel="PP-OCRv5 + Tesseract starten"
      runningLabel="PP-OCRv5 + Tesseract laufen..."
      engineKey="kombi"
    />
  )
}
