1
|
import { UserNavBar } from '../components/navigation/UserNavBar';
|
2
|
import { AdminNavBar } from '../components/navigation/AdminNavBar';
|
3
|
import 'antd/dist/antd.css';
|
4
|
import styles from '/styles/MainLayout.module.scss';
|
5
|
import React from 'react';
|
6
|
|
7
|
/**
|
8
|
* Creates layout of main screens.
|
9
|
* @param props Html structure of a login form.
|
10
|
* @returns The login screen.
|
11
|
*/
|
12
|
export function MainLayout(props: { children: React.ReactNode }) {
|
13
|
return (
|
14
|
<div className={styles.layoutWrapper}>
|
15
|
<div className={styles.header}>
|
16
|
{/**
|
17
|
@todo: Select correct navigation bar
|
18
|
{user && <UserNavBar />}
|
19
|
{admin && <AdminNavBar />}
|
20
|
**/}
|
21
|
</div>
|
22
|
<main className={styles.content}>{props.children}</main>
|
23
|
<div className={styles.footer}></div>
|
24
|
</div>
|
25
|
);
|
26
|
}
|