import { _ as __assign } from '../../chunks/bundle-BA7tv0JB.js';
import React__default from 'react';
import { M as MessageInputWrapperView } from '../../chunks/bundle-DSoowPBh.js';
import { useChannelContext } from '../context.js';
import '../../chunks/bundle-tPCzzoc1.js';
import '../../useSendbirdStateContext.js';
import '../../withSendbird.js';
import '../../chunks/bundle-BBjosDA0.js';
import '../../chunks/bundle-jy6_UG14.js';
import '../../chunks/bundle-ULVw0l0r.js';
import '../../chunks/bundle-Xytq6xaz.js';
import '../../chunks/bundle-I8JFwttJ.js';
import '../../ui/Icon.js';
import '../../chunks/bundle-cA_r9HRx.js';
import '../../chunks/bundle-Qufz6_i_.js';
import '../../ui/ImageRenderer.js';
import '../../chunks/bundle-jDjj3eHU.js';
import '../../chunks/bundle-YoWLsJ0C.js';
import '../../chunks/bundle-GGE6HRof.js';
import '../../Message/hooks/useDirtyGetMentions.js';
import '../../ui/QuoteMessageInput.js';
import '../../chunks/bundle-N9hMnIRl.js';
import '@sendbird/chat/groupChannel';
import '../../utils/message/getOutgoingMessageState.js';
import '../../chunks/bundle-aKXnhi3A.js';
import '../../chunks/bundle-w1C-Xmf3.js';
import '../../VoicePlayer/useVoicePlayer.js';
import '../../chunks/bundle-drww6xht.js';
import '../../chunks/bundle-MBrlu_LK.js';
import '../../VoiceRecorder/context.js';
import '../../chunks/bundle-cvTUkQV_.js';
import 'react-dom';
import '../../chunks/bundle-r9j_eCHc.js';
import '../../ui/IconButton.js';
import '../../ui/Button.js';
import '../../VoiceRecorder/useVoiceRecorder.js';
import '../../chunks/bundle-OFH4qWaN.js';
import '../../ui/PlaybackTime.js';
import '../../ui/ProgressBar.js';
import '../../ui/TextButton.js';
import '../../chunks/bundle-LWD0OLz8.js';
import '../../ui/MessageInput.js';
import '../../chunks/bundle-poK2Vr1v.js';
import '../../chunks/bundle-62ej9afV.js';
import 'dompurify';
import '../../chunks/bundle-zV8TJWvL.js';
import '../../chunks/bundle-4GPpeoNf.js';
import '../../chunks/bundle-iwZaUd9o.js';
import '../../chunks/bundle-IRlSmJVg.js';
import '../../hooks/useModal.js';
import '../../chunks/bundle-8JX3bIpj.js';
import '../../chunks/bundle-vOT5acXc.js';
import '../../chunks/bundle-d5KevIXI.js';
import '@sendbird/chat/message';
import '../../chunks/bundle-NjNqsDXb.js';
import '../../chunks/bundle-hDx2-CRe.js';
import '../../chunks/bundle-_cXVZn5n.js';
import '../../chunks/bundle-NwZvowyL.js';
import '../hooks/useInitialMessagesFetch.js';
import '../../chunks/bundle-D1V3P366.js';
import '../../chunks/bundle-nlOgiAcu.js';
import '../../chunks/bundle-Q8kUKu5l.js';
import '../../chunks/bundle-ZOCAUrJO.js';
import '../../chunks/bundle-laVKAiJ-.js';

var MessageInputWrapper = function (props) {
    var context = useChannelContext();
    var currentGroupChannel = context.currentGroupChannel, sendMessage = context.sendMessage, sendFileMessage = context.sendFileMessage, sendVoiceMessage = context.sendVoiceMessage, sendMultipleFilesMessage = context.sendMultipleFilesMessage;
    return (React__default.createElement(MessageInputWrapperView, __assign({}, props, context, { currentChannel: currentGroupChannel, quoteMessage: context.quoteMessage, sendUserMessage: function (params) { return (sendMessage(__assign(__assign({}, params), { quoteMessage: { messageId: params.parentMessageId } }))); }, sendFileMessage: function (params) { return (sendFileMessage(params.file, { messageId: params.parentMessageId })); }, sendVoiceMessage: function (_a, duration) {
            var file = _a.file, parentMessageId = _a.parentMessageId;
            return (sendVoiceMessage(file, duration, { parentMessageId: parentMessageId }));
        }, sendMultipleFilesMessage: function (_a) {
            var fileInfoList = _a.fileInfoList, parentMessageId = _a.parentMessageId;
            return (sendMultipleFilesMessage(fileInfoList.map(function (fileInfo) { return fileInfo.file; }), { parentMessageId: parentMessageId }));
        } })));
};

export { MessageInputWrapper, MessageInputWrapper as default };
//# sourceMappingURL=MessageInput.js.map
