mirror of
https://github.com/owncast/owncast.git
synced 2025-11-02 11:56:57 +08:00
More blank components and stories to be filled in
This commit is contained in:
@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user