import React__default, { useContext, useRef } from 'react';
import { L as LocalizationContext } from '../chunks/bundle-CfVl8s4A.js';
import { M as Modal } from '../chunks/bundle-PPnIQFif.js';
import Button, { ButtonTypes } from './Button.js';
import { L as Label, a as LabelTypography, b as LabelColors } from '../chunks/bundle-BoHJWlEb.js';
import { u as useKeyDown } from '../chunks/bundle-BcIO-0xx.js';
import '../chunks/bundle-BL7mChau.js';
import '../chunks/bundle-DQaFQR2q.js';
import '../chunks/bundle-ca6IMmD9.js';
import '@sendbird/chat/groupChannel';
import '../utils/message/getOutgoingMessageState.js';
import '../chunks/bundle-RX4SHzNN.js';
import '../chunks/bundle-Cj_Dxz14.js';
import '../chunks/bundle-DOfvZYT8.js';
import '../chunks/bundle-c8Tan9dw.js';
import 'react-dom';
import '../chunks/bundle-Bvh73TsV.js';
import './IconButton.js';
import './Icon.js';
import '@sendbird/uikit-tools';
import '../withSendbird.js';
import 'css-vars-ponyfill';
import '@sendbird/chat';
import '../chunks/bundle-0P_11xTV.js';
import '@sendbird/chat/openChannel';
import '../chunks/bundle-hFyf4W91.js';
import '../useSendbirdStateContext.js';
import '../chunks/bundle-BjZ9zlI7.js';
import './SortByRow.js';

function MessageFeedbackFailedModal(props) {
    var text = props.text, onCancel = props.onCancel;
    var stringSet = useContext(LocalizationContext).stringSet;
    var modalRef = useRef(null);
    var onKeyDown = 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.createElement("div", { onKeyDown: onKeyDown },
        React__default.createElement(Modal, { contentClassName: 'sendbird-message-feedback-modal-content__mobile', type: ButtonTypes.PRIMARY, onSubmit: onCancel, onClose: onCancel, submitText: stringSet.BUTTON__OK, renderHeader: function () { return (React__default.createElement("div", { className: 'sendbird-modal__header' },
                React__default.createElement(Label, { type: LabelTypography.H_1, color: LabelColors.ONBACKGROUND_1, className: 'sendbird-message-feedback-modal-header' }, text))); }, customFooter: React__default.createElement("div", { className: 'sendbird-message-feedback-modal-footer__root_failed' },
                React__default.createElement(Button, { onClick: onCancel },
                    React__default.createElement(Label, { type: LabelTypography.BUTTON_3, color: LabelColors.ONCONTENT_1 }, stringSet.BUTTON__OK))) })));
}

export { MessageFeedbackFailedModal as default };
//# sourceMappingURL=MessageFeedbackFailedModal.js.map
