1 |
6d10fe14
|
Dominik Poch
|
import 'antd/dist/antd.css';
|
2 |
c73aecde
|
Dominik Poch
|
import styles from '/styles/MainLayout.module.scss';
|
3 |
6a250c18
|
Lukáš Vlček
|
import Navbar from './Navbar';
|
4 |
6d10fe14
|
Dominik Poch
|
|
5 |
|
|
/**
|
6 |
|
|
* Creates layout of main screens.
|
7 |
|
|
* @param props Html structure of a login form.
|
8 |
|
|
* @returns The login screen.
|
9 |
|
|
*/
|
10 |
c73aecde
|
Dominik Poch
|
export function MainLayout(props: { children: React.ReactNode }) {
|
11 |
6d10fe14
|
Dominik Poch
|
return (
|
12 |
c73aecde
|
Dominik Poch
|
<div className={styles.layoutWrapper}>
|
13 |
6a250c18
|
Lukáš Vlček
|
<Navbar />
|
14 |
ce63b2ab
|
Dominik Poch
|
<main className={styles.content}>{props.children}</main>
|
15 |
|
|
</div>
|
16 |
6d10fe14
|
Dominik Poch
|
);
|
17 |
|
|
}
|
18 |
6a250c18
|
Lukáš Vlček
|
|
19 |
|
|
export default MainLayout;
|