import React from 'react'; import { defineMessages, useIntl } from 'react-intl'; import { HStack, Icon, Text } from 'soapbox/components/ui'; import { ChatWidgetScreens, useChatContext } from 'soapbox/contexts/chat-context'; import ChatPaneHeader from '../chat-pane-header'; const messages = defineMessages({ title: { id: 'chat_search.title', defaultMessage: 'Messages' }, }); const ChatSearchHeader = () => { const intl = useIntl(); const { changeScreen, isOpen, toggleChatPane } = useChatContext(); return ( {intl.formatMessage(messages.title)} } isOpen={isOpen} isToggleable={false} onToggle={toggleChatPane} /> ); }; export default ChatSearchHeader;