"use strict";
Object.defineProperty(exports, "__esModule", {
    value: true
});
Object.defineProperty(exports, "SurveyResponseDetails", {
    enumerable: true,
    get: function() {
        return SurveyResponseDetails;
    }
});
const _react = /*#__PURE__*/ _interop_require_default(require("react"));
const _DataSection = require("./DataSection");
const _DataItem = require("./DataItem");
const _Layout = require("../Layout");
const _languageContext = require("../../pdf/languageContext");
const _withDateTimeContext = require("../../pdf/withDateTimeContext");
function _interop_require_default(obj) {
    return obj && obj.__esModule ? obj : {
        default: obj
    };
}
const SurveyResponseDetails = ({ surveyResponse })=>{
    const { getTranslation } = (0, _languageContext.useLanguageContext)();
    const { formatShort } = (0, _withDateTimeContext.useDateTime)();
    return /*#__PURE__*/ _react.default.createElement(_DataSection.DataSection, {
        hideTopRule: true,
        hideBottomRule: true
    }, /*#__PURE__*/ _react.default.createElement(_Layout.Col, null, /*#__PURE__*/ _react.default.createElement(_DataItem.DataItem, {
        label: getTranslation('general.localisedField.clinician.label.short', 'Clinician'),
        value: surveyResponse.submittedBy
    })), /*#__PURE__*/ _react.default.createElement(_Layout.Col, null, /*#__PURE__*/ _react.default.createElement(_DataItem.DataItem, {
        label: getTranslation('pdf.surveyResponseDetails.dateOfSubmission', 'Date of submission'),
        value: formatShort(surveyResponse.endTime)
    })));
};

//# sourceMappingURL=SurveyResponseDetails.js.map