// src/components/InputPanel.jsx import React, { useRef, useState } from 'react' export default function InputPanel({ text, onTextChange, onImageChange, onAnalyze, loading, imagePreview }) { const fileRef = useRef(null) const [dragOver, setDragOver] = useState(false) function handleDrop(e) { e.preventDefault() setDragOver(false) const file = e.dataTransfer.files[0] if (file && file.type.startsWith('image/')) onImageChange(file) } function handleFile(e) { const file = e.target.files[0] if (file) onImageChange(file) } return (
Drop face image or click to upload
JPEG · PNG · WEBP
Demo mode active — connects to FastAPI on :8000 when available