Rocket.Chat.ReactNative/app/containers/MessageComposer/components/Toolbar/EmojiKeyboard.tsx

27 lines
671 B
TypeScript
Raw Normal View History

2024-01-25 14:11:07 +00:00
import React, { ReactElement } from 'react';
import { MicOrSendButton, ActionsButton, BaseButton } from '..';
import { useMessageComposerApi } from '../../context';
import { Container } from './Container';
import { EmptySpace } from './EmptySpace';
import { Gap } from '../Gap';
export const EmojiKeyboard = (): ReactElement => {
const { closeEmojiKeyboard } = useMessageComposerApi();
return (
<Container>
<ActionsButton />
<Gap />
<BaseButton
onPress={closeEmojiKeyboard}
testID='message-composer-close-emoji'
accessibilityLabel='Close_emoji_selector'
icon='keyboard'
/>
<EmptySpace />
<MicOrSendButton />
</Container>
);
};