You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
673 B
24 lines
673 B
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;
|
|
|