import { useRef } from 'react'; import { ImagePlus, X, ZoomIn, ZoomOut, RotateCcw } from 'lucide-react'; import { Button } from '@/components/ui/button'; import { useModelStore } from '@/stores/useModelStore'; import { useState } from 'react'; export function ComparePanel() { const { compareImage, setCompareImage } = useModelStore(); const fileRef = useRef(null); const [zoom, setZoom] = useState(1); const handleFile = (e: React.ChangeEvent) => { const file = e.target.files?.[0]; if (!file) return; const url = URL.createObjectURL(file); setCompareImage(url); setZoom(1); }; if (!compareImage) { return (

Foto Real da Peça

Carregue uma foto para comparar com o modelo 3D

); } return (
{/* Toolbar */}
Foto Real
{Math.round(zoom * 100)}%
{/* Image */}
Foto real da peça
); }