import React from 'react'; import { Avatar, HStack, Icon, Stack, Text } from 'soapbox/components/ui'; import VerificationBadge from 'soapbox/components/verification_badge'; import { IChat } from 'soapbox/queries/chats'; import ChatBox from './chat-box'; import ChatPaneHeader from './chat-pane-header'; interface IChatWindow { chat: IChat closeChat(): void closePane(): void } /** Floating desktop chat window. */ const ChatWindow: React.FC = ({ chat, closeChat, closePane }) => { if (!chat) return null; return ( <>
{chat.account.display_name} {chat.account.verified && }
{chat.account.acct}
} isToggleable={false} isOpen onToggle={closePane} /> null} /> ); }; export default ChatWindow;