import { Label } from '@/components/ui/label'; import { Textarea } from '@/components/ui/textarea'; interface Props { question: ExamQuestion; answer: any; onAnswerChange: (answer: any) => void; } const ShortAnswerQuestion = ({ question, answer, onAnswerChange }: Props) => { const answerText = answer?.answer_text || ''; const wordLimit = question.options?.word_limit || 500; const handleChange = (value: string) => { onAnswerChange({ question_id: question.id, answer_text: value, }); }; const wordCount = answerText.trim().split(/\s+/).filter(Boolean).length; return (

Note: This answer will be manually graded by the instructor. Write a clear and detailed response.