import React, { useState } from 'react'; interface Props { onAsk: (question: string) => void; } export function QuestionPanel({ onAsk }: Props) { const [question, setQuestion] = useState(''); const handleSubmit = (e: React.FormEvent) => { e.preventDefault(); if (!question.trim()) return; onAsk(question.trim()); setQuestion(''); }; return (
setQuestion(e.target.value)} placeholder="Ask a question about your documents..." style={{ flex: 1, padding: '10px 14px', background: '#1a1a2e', color: '#e0e0e0', border: '1px solid #0f3460', borderRadius: '6px', fontSize: '14px', outline: 'none', }} />
); }