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