import { useRecoilValue } from 'recoil'; import { ChatMessage } from '../../../../interfaces/chat-message.model'; import { ChatContainer } from '../../../../components/chat/ChatContainer/ChatContainer'; import { ClientConfigStore, chatDisplayNameAtom, chatUserIdAtom, visibleChatMessagesSelector, clientConfigStateAtom, isChatModeratorAtom, } from '../../../../components/stores/ClientConfigStore'; import Header from '../../../../components/ui/Header/Header'; import { ClientConfig } from '../../../../interfaces/client-config.model'; export default function ReadWriteChatEmbed() { const chatDisplayName = useRecoilValue(chatDisplayNameAtom); const chatUserId = useRecoilValue(chatUserIdAtom); const messages = useRecoilValue(visibleChatMessagesSelector); const clientConfig = useRecoilValue(clientConfigStateAtom); const isModerator = useRecoilValue(isChatModeratorAtom); const { name, chatDisabled } = clientConfig; return (
); }