File tree Expand file tree Collapse file tree
src/components/MessageInput Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11import React from 'react' ;
22import { useMessageComposerHasSendableData } from './hooks' ;
3- import type { UpdatedMessage } from 'stream-chat' ;
43import { useTranslationContext } from '../../context' ;
54import { IconPaperPlane } from '../Icons' ;
65import { Button } from '../Button' ;
76import clsx from 'clsx' ;
87
98export type SendButtonProps = {
10- sendMessage : (
11- event : React . BaseSyntheticEvent ,
12- customMessageData ?: Omit < UpdatedMessage , 'mentioned_users' > ,
13- ) => void ;
9+ sendMessage : ( event : React . BaseSyntheticEvent ) => void ;
1410} & React . ComponentProps < 'button' > ;
1511
1612export const SendButton = ( { children, sendMessage, ...rest } : SendButtonProps ) => {
Original file line number Diff line number Diff line change @@ -2,16 +2,12 @@ import type React from 'react';
22import { useTextareaRef } from './useTextareaRef' ;
33import { useSubmitHandler } from './useSubmitHandler' ;
44import { usePasteHandler } from './usePasteHandler' ;
5- import { useMediaRecorder } from '../../MediaRecorder/hooks/useMediaRecorder' ;
65import type { RecordingController } from '../../MediaRecorder/hooks/useMediaRecorder' ;
7- import type { UpdatedMessage } from 'stream-chat ' ;
6+ import { useMediaRecorder } from '../../MediaRecorder/hooks/useMediaRecorder ' ;
87import type { MessageInputProps } from '../MessageInput' ;
98
109export type MessageInputHookProps = {
11- handleSubmit : (
12- event ?: React . BaseSyntheticEvent ,
13- customMessageData ?: Omit < UpdatedMessage , 'mentioned_users' > ,
14- ) => void ;
10+ handleSubmit : ( event ?: React . BaseSyntheticEvent ) => void ;
1511 onPaste : ( event : React . ClipboardEvent < HTMLTextAreaElement > ) => void ;
1612 recordingController : RecordingController ;
1713 textareaRef : React . MutableRefObject < HTMLTextAreaElement | null | undefined > ;
You can’t perform that action at this time.
0 commit comments