import MathText from '../shared/MathText' const TYPE_LABELS = { mcq: 'MCQ Single', msq: 'MSQ Multiple', nat: 'NAT Numerical', } export default function QuestionMetaBar({ question }) { const typeLabel = TYPE_LABELS[question.question_type] ?? question.question_type return (
Question Type: {typeLabel} Marks: +{question.marks} {question.negative_marks > 0 && ( / -{question.negative_marks} )}
) }