mirror of
https://github.com/owncast/owncast.git
synced 2025-11-01 19:32:20 +08:00
22 lines
530 B
TypeScript
22 lines
530 B
TypeScript
import { Spin } from 'antd';
|
|
import { ChatMessage } from '../../interfaces/chat-message.model';
|
|
import { ChatState } from '../../interfaces/application-state';
|
|
|
|
interface Props {
|
|
messages: ChatMessage[];
|
|
state: ChatState;
|
|
}
|
|
|
|
export default function ChatContainer(props: Props) {
|
|
const { messages, state } = props;
|
|
const loading = state === ChatState.Loading;
|
|
|
|
return (
|
|
<div>
|
|
<Spin tip="Loading..." spinning={loading}>
|
|
Chat container with scrolling chat messages go here
|
|
</Spin>
|
|
</div>
|
|
);
|
|
}
|