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 (
); }