diff --git a/packages/react/src/views/ChatInput/AudioMessageRecorder.js b/packages/react/src/views/ChatInput/AudioMessageRecorder.js index 8f2287569..9ff497a30 100644 --- a/packages/react/src/views/ChatInput/AudioMessageRecorder.js +++ b/packages/react/src/views/ChatInput/AudioMessageRecorder.js @@ -1,5 +1,11 @@ import React, { useState, useEffect, useCallback, useRef } from 'react'; -import { Box, Icon, ActionButton, useTheme } from '@embeddedchat/ui-elements'; +import { + Box, + Icon, + ActionButton, + Tooltip, + useTheme, +} from '@embeddedchat/ui-elements'; import { useMediaRecorder } from '../../hooks/useMediaRecorder'; import useMessageStore from '../../store/messageStore'; import { getCommonRecorderStyles } from './ChatInput.styles'; @@ -131,14 +137,16 @@ const AudioMessageRecorder = ({ disabled }) => { if (state === 'idle') { return ( - - - + + + + + ); } @@ -146,18 +154,22 @@ const AudioMessageRecorder = ({ disabled }) => { {state === 'recording' && ( <> - - - + + + + + {time} - - - + + + + + )} diff --git a/packages/react/src/views/ChatInput/ChatInputFormattingToolbar.js b/packages/react/src/views/ChatInput/ChatInputFormattingToolbar.js index 4c72bc4dc..523b9ef97 100644 --- a/packages/react/src/views/ChatInput/ChatInputFormattingToolbar.js +++ b/packages/react/src/views/ChatInput/ChatInputFormattingToolbar.js @@ -88,16 +88,8 @@ const ChatInputFormattingToolbar = ({ ), - audio: ( - - - - ), - video: ( - - - - ), + audio: , + video: , file: ( { return ( <> {state === 'idle' && ( - - - + + + + + )} {state === 'recording' && ( @@ -178,16 +181,20 @@ const VideoMessageRecorder = ({ disabled }) => { `} /> - - - + + + + + {time} - - - + + + + +