2022-04-28 18:54:33 +02:00
|
|
|
import { Layout } from 'antd';
|
2022-05-08 18:05:37 -07:00
|
|
|
import { useRecoilValue } from 'recoil';
|
|
|
|
import { ClientConfigStore, clientConfigStateAtom } from '../stores/ClientConfigStore';
|
2022-05-03 23:55:13 +02:00
|
|
|
import { Content, Header } from '../ui';
|
2022-05-08 18:05:37 -07:00
|
|
|
import { ClientConfig } from '../../interfaces/client-config.model';
|
2022-04-25 23:10:07 -07:00
|
|
|
|
|
|
|
function Main() {
|
2022-05-08 18:05:37 -07:00
|
|
|
const clientConfig = useRecoilValue<ClientConfig>(clientConfigStateAtom);
|
|
|
|
const { name, title } = clientConfig;
|
|
|
|
|
2022-04-25 23:10:07 -07:00
|
|
|
return (
|
|
|
|
<>
|
|
|
|
<ClientConfigStore />
|
|
|
|
<Layout>
|
2022-05-08 18:05:37 -07:00
|
|
|
<Header name={title || name} />
|
2022-05-03 23:55:13 +02:00
|
|
|
<Content />
|
2022-04-25 23:10:07 -07:00
|
|
|
</Layout>
|
|
|
|
</>
|
|
|
|
);
|
|
|
|
}
|
|
|
|
|
|
|
|
export default Main;
|