import { useState } from 'react'; import { Send } from 'lucide-react'; const ImageRefiner = ({ onRefine, isLoading, hasGeneratedContent }) => { const [inputValue, setInputValue] = useState(''); const handleSubmit = (e) => { e.preventDefault(); if (!inputValue.trim()) return; onRefine(inputValue); setInputValue(''); }; if (!hasGeneratedContent) return null; return (
setInputValue(e.target.value)} placeholder="Type to refine the image..." disabled={isLoading} className="flex-1 px-4 py-2 bg-white border border-gray-200 rounded-xl text-gray-800 placeholder-gray-400 focus:outline-none focus:ring-2 focus:ring-gray-400 disabled:opacity-50 disabled:cursor-not-allowed" />
); }; export default ImageRefiner;