import { Skeleton } from 'antd'; import React from 'react'; import { useConverseMessage } from 'pawchat-shared'; import { AlertErrorView } from '../AlertErrorView'; const ChatBoxPlaceholder: React.FC = React.memo(() => { return (
); }); ChatBoxPlaceholder.displayName = 'ChatBoxPlaceholder'; export const ChatBox: React.FC<{ converseId: string; }> = React.memo((props) => { const { messages, loading, error } = useConverseMessage(props.converseId); if (loading) { return ; } if (error) { return ; } return
消息数据: {JSON.stringify(messages)}
; }); ChatBox.displayName = 'ChatBox';