import React, { useContext } from 'react';
import { useExamTranslation } from '../../i18n';
import { ExamContext } from '../context/ExamContext';
function GoToExamineAnswersButton() {
    const { examServerApi } = useContext(ExamContext);
    const { examineExam } = examServerApi;
    const { t } = useExamTranslation();
    const goToInspectAnswers = () => {
        if (!examineExam) {
            return;
        }
        examineExam();
    };
    return (React.createElement("button", { className: "e-button goto-examine-answers", onClick: goToInspectAnswers, "aria-describedby": "examineExamInstructions" }, t('examine-exam.examine')));
}
export default React.memo(GoToExamineAnswersButton);
//# sourceMappingURL=GoToExamineAnswersButton.js.map