import React from 'react';
import { useExamTranslation } from '../../i18n';
export const EndExamSession = ({ onEndSession, sessionEnded }) => {
    const { t } = useExamTranslation();
    return (React.createElement("div", { className: "e-logout-container" },
        React.createElement("div", { className: "e-bg-color-off-white e-pad-6 shadow-box" },
            sessionEnded ? (React.createElement(React.Fragment, null,
                React.createElement("h3", null, t('examineExam.thankYouTitle')),
                React.createElement("p", null,
                    t('examineExam.shutdownComputer'),
                    React.createElement("br", null),
                    t('examineExam.returnUsbStick')))) : (React.createElement(React.Fragment, null,
                React.createElement("h3", null, t('examineExam.endExamTitle')),
                React.createElement("p", null,
                    t('examineExam.afterInspectingYourAnswers'),
                    React.createElement("br", null),
                    t('examineExam.youCanNotReturnToExam')))),
            !sessionEnded && (React.createElement("button", { id: "endSession", className: "e-button", onClick: () => void onEndSession() }, t('examineExam.endExamTitle'))))));
};
//# sourceMappingURL=EndExamSession.js.map