import React, { useContext } from 'react';
import { useExamTranslation } from '../../../i18n';
import { QuestionContext } from '../../context/QuestionContext';
import ResultsExamQuestionScoresContainer from './QuestionScoresContainer';
function QuestionAutoScore({ score, maxScore, displayNumber, questionId }) {
    const { answers } = useContext(QuestionContext);
    const { t } = useExamTranslation();
    const containerProps = { answers, displayNumber, questionId };
    return (React.createElement(ResultsExamQuestionScoresContainer, { ...containerProps },
        typeof score === 'number' ? React.createElement("b", null, score) : React.createElement("span", { className: "e-result-scorecount-empty" }),
        ' ',
        maxScore ? `/ ${maxScore} ` : null,
        " ",
        t('points', { count: '' })));
}
export default React.memo(QuestionAutoScore);
//# sourceMappingURL=QuestionAutoScore.js.map