aswi20220x00-gitlab/webapp/layouts/MainLayout.tsx @ b11af9b1
1 |
import 'antd/dist/antd.css'; |
---|---|
2 |
import styles from '/styles/MainLayout.module.scss'; |
3 |
import Navbar from './Navbar'; |
4 |
|
5 |
/**
|
6 |
* Creates layout of main screens.
|
7 |
* @param props Html structure of a login form.
|
8 |
* @returns The login screen.
|
9 |
*/
|
10 |
export function MainLayout(props: { children: React.ReactNode }) { |
11 |
return ( |
12 |
<div className={styles.layoutWrapper}> |
13 |
<Navbar /> |
14 |
<main className={styles.content}>{props.children}</main> |
15 |
</div> |
16 |
);
|
17 |
}
|
18 |
|
19 |
export default MainLayout; |