import React from 'react'; import { ZoomIn, ZoomOut } from 'lucide-react'; export default function ClassifyStep({ classifiedPages, setClassifiedPages, selectedPageIndex, setSelectedPageIndex, zoom, setZoom, isArabic, handleSaveClassifications, loading }) { return (
{/* Left Page Image Viewer */}
{isArabic ? 'معاينة المخطط' : 'Drawing Preview'} (Page {selectedPageIndex + 1})
{classifiedPages[selectedPageIndex] && ( Page preview )}
{/* Right Classify Options */}

{isArabic ? '2. نتائج التصنيف التلقائي للصفحات' : '2. Page Classification Results'}

{isArabic ? 'يرجى مراجعة وتأكيد تصنيف الصفحات. اختر الصفحة لمشاهدة المخطط على اليسار وتعديل نوعه.' : 'Review classifications. Select a page, review its image on the left, and adjust the category if needed.'}

{classifiedPages.map((page, idx) => (
setSelectedPageIndex(idx)} style={{ display: 'flex', alignItems: 'center', justifyContent: 'space-between', padding: '10px 14px', borderRadius: '8px', border: '1px solid var(--border-color)', backgroundColor: idx === selectedPageIndex ? 'var(--primary-glow)' : 'var(--bg-secondary)', cursor: 'pointer' }} >
{page.pdf === 'structural' ? (isArabic ? 'إنشائي' : 'Structural') : (isArabic ? 'معماري' : 'Architectural')} P{page.page_num}
))}
); }