Fill out some more components + add application state enums

This commit is contained in:
Gabe Kangas
2022-04-29 15:09:53 -07:00
parent e5d3b0e4ee
commit 4997c7c5ac
18 changed files with 522 additions and 116 deletions

View File

@@ -1,9 +1,21 @@
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) {
return <div>Chat container goes here</div>;
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>
);
}