mirror of
https://github.com/owncast/owncast.git
synced 2025-01-08 01:27:31 +03:00
24 lines
673 B
TypeScript
24 lines
673 B
TypeScript
import { Layout } from 'antd';
|
|
import { useRecoilValue } from 'recoil';
|
|
import { ServerStatusStore } from '../stores/ServerStatusStore';
|
|
import { ClientConfigStore, clientConfigStateAtom } from '../stores/ClientConfigStore';
|
|
import { Content, Header } from '../ui';
|
|
import { ClientConfig } from '../../interfaces/client-config.model';
|
|
|
|
function Main() {
|
|
const clientConfig = useRecoilValue<ClientConfig>(clientConfigStateAtom);
|
|
const { name, title } = clientConfig;
|
|
|
|
return (
|
|
<>
|
|
<ServerStatusStore />
|
|
<ClientConfigStore />
|
|
<Layout>
|
|
<Header name={title || name} />
|
|
<Content />
|
|
</Layout>
|
|
</>
|
|
);
|
|
}
|
|
|
|
export default Main;
|