import React from 'react'; export default function VerifyStep({ currentStep, confirmedData, extractionResults, sanityWarnings, updateConfirmedField, updateOpeningField, renderSourceBadge, hasEstimates, acknowledgedEstimates, setAcknowledgedEstimates, handleConfirmDataSubmit, calcParams, setCalcParams, handleRunCalculation, loading, isArabic }) { const [markupImage, setMarkupImage] = React.useState(null); if (currentStep === 4) { return (
{isArabic ? 'يرجى تدقيق القيم التي استخرجها الذكاء الاصطناعي وتعديل أي قيم غير دقيقة قبل حساب جداول الحصر.' : 'Inspect the parameters extracted by AI. Correct any dimensions before running engineering calculations.'}
{/* Failed Extractions Warnings */} {extractionResults && Object.values(extractionResults).filter(res => res._ok === false).length > 0 && ({isArabic ? 'لم يتمكن الذكاء الاصطناعي من قراءة الجداول من المستندات التالية بوضوح. لا تقلق، سيقوم النظام تلقائياً باستخدام التقديرات الهندسية الافتراضية (Engineering Assumptions) أدناه لتعويض النقص وإتمام الحسابات:' : 'The AI could not clearly read the schedules from the following documents. Don\'t worry, the system will automatically fall back to the safe Engineering Assumptions & Defaults below to complete the calculations:'}
{isArabic ? 'اضبط إعدادات الارتفاع وعدد الأدوار لتشغيل محرك الحسابات الهندسية.' : 'Adjust the height values, floor layers, and excavation depths to compute the takeoff sheet.'}