More blank components and stories to be filled in

This commit is contained in:
Gabe Kangas
2022-04-28 14:36:05 -07:00
parent e0c073171d
commit e5d3b0e4ee
16 changed files with 194 additions and 36 deletions

View File

@ -3,6 +3,7 @@ import { ReactElement } from 'react-markdown/lib/react-markdown';
import { atom, useRecoilState } from 'recoil';
import { makeEmptyClientConfig, ClientConfig } from '../../interfaces/client-config.model';
import ClientConfigService from '../../services/client-config-service';
import { ChatMessage } from '../../interfaces/chat-message.model';
// The config that comes from the API.
export const clientConfigState = atom({
@ -15,11 +16,16 @@ export const chatCurrentlyVisible = atom({
default: false,
});
export const chatDislayName = atom({
export const chatDisplayName = atom({
key: 'chatDisplayName',
default: '',
});
export const chatMessages = atom({
key: 'chatMessages',
default: [] as ChatMessage[],
});
export function ClientConfigStore(): ReactElement {
const [, setClientConfig] = useRecoilState<ClientConfig>(clientConfigState);