Projekt

Obecné

Profil

Stáhnout (1.23 KB) Statistiky
| Větev: | Tag: | Revize:
1
import { Layout } from 'antd';
2
import AnnotationPanel from '../components/annotation/annotationPanel';
3
import DocumentAnnotationView from '../components/annotation/documentAnnotationView';
4
import TagPanel from '../components/annotation/tagPanel';
5
import 'antd/dist/antd.css';
6
import styles from '/styles/annotation.module.scss';
7
import UserNavBar from '../components/navigation/userNavBar';
8

    
9
const { Header, Content, Footer, Sider } = Layout;
10

    
11
/**
12
 * Creates a layout of a document annotation screen. It contains a panel with a list of tags and a panel with a list of annotations.
13
 * @returns Annotation layout.
14
 */
15
function AnnotationLayout() {
16
    return (
17
        <Layout>
18
            <Header>
19
                <UserNavBar />
20
            </Header>
21
            <Layout hasSider>
22
                <Sider className={styles.leftSidePanel}>
23
                    <TagPanel />
24
                </Sider>
25
                <Content className={styles.mainView}>
26
                    <DocumentAnnotationView />
27
                </Content>
28
                <Sider className={styles.rightSidePanel}>
29
                    <AnnotationPanel />
30
                </Sider>
31
            </Layout>
32
            <Footer></Footer>
33
        </Layout>
34
    );
35
}
36

    
37
export default AnnotationLayout;
    (1-1/1)