'use strict';

var React = require('react');
var LocalizationContext = require('../chunks/bundle-BmMxoxjN.js');
var ui_Modal = require('../chunks/bundle-dudJtubx.js');
var ui_Button = require('./Button.js');
var ui_Label = require('../chunks/bundle-CY_gcwTl.js');
var useKeyDown = require('../chunks/bundle-CaDCOzgc.js');
require('../chunks/bundle-Dqor5-v9.js');
require('../chunks/bundle-pG37uJy2.js');
require('../chunks/bundle-slo-uj1z.js');
require('@sendbird/chat/groupChannel');
require('../utils/message/getOutgoingMessageState.js');
require('../chunks/bundle-BS4UAC4Z.js');
require('../chunks/bundle-DRUCFhOE.js');
require('../chunks/bundle-CXXt3nEF.js');
require('../chunks/bundle-DXT1Y4Vj.js');
require('react-dom');
require('../chunks/bundle-CTIC4U7B.js');
require('./IconButton.js');
require('./Icon.js');
require('@sendbird/uikit-tools');
require('../withSendbird.js');
require('css-vars-ponyfill');
require('@sendbird/chat');
require('../chunks/bundle-DIZXTVPY.js');
require('@sendbird/chat/openChannel');
require('../chunks/bundle-BbgSFL3H.js');
require('../useSendbirdStateContext.js');
require('../chunks/bundle-B6pik6Q8.js');
require('./SortByRow.js');

function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'default' in e ? e : { default: e }; }

var React__default = /*#__PURE__*/_interopDefaultCompat(React);

function MessageFeedbackFailedModal(props) {
    var text = props.text, onCancel = props.onCancel;
    var stringSet = React.useContext(LocalizationContext.LocalizationContext).stringSet;
    var modalRef = React.useRef(null);
    var onKeyDown = useKeyDown.useKeyDown(modalRef, {
        Enter: function () { return onCancel === null || onCancel === void 0 ? void 0 : onCancel(); },
        Escape: function () { return onCancel === null || onCancel === void 0 ? void 0 : onCancel(); },
    });
    return (React__default.default.createElement("div", { onKeyDown: onKeyDown },
        React__default.default.createElement(ui_Modal.Modal, { contentClassName: 'sendbird-message-feedback-modal-content__mobile', type: ui_Button.ButtonTypes.PRIMARY, onSubmit: onCancel, onClose: onCancel, submitText: stringSet.BUTTON__OK, renderHeader: function () { return (React__default.default.createElement("div", { className: 'sendbird-modal__header' },
                React__default.default.createElement(ui_Label.Label, { type: ui_Label.LabelTypography.H_1, color: ui_Label.LabelColors.ONBACKGROUND_1, className: 'sendbird-message-feedback-modal-header' }, text))); }, customFooter: React__default.default.createElement("div", { className: 'sendbird-message-feedback-modal-footer__root_failed' },
                React__default.default.createElement(ui_Button.default, { onClick: onCancel },
                    React__default.default.createElement(ui_Label.Label, { type: ui_Label.LabelTypography.BUTTON_3, color: ui_Label.LabelColors.ONCONTENT_1 }, stringSet.BUTTON__OK))) })));
}

module.exports = MessageFeedbackFailedModal;
//# sourceMappingURL=MessageFeedbackFailedModal.js.map
