Projekt

Obecné

Profil

Stáhnout (915 Bajtů) Statistiky
| Větev: | Tag: | Revize:
1 8c45ccb0 hrubyjar
import 'antd/dist/antd.css';
2
import React, { useContext, useEffect } from 'react';
3
4
import { useUnauthRedirect } from '../../hooks';
5
import { useRouter } from 'next/router';
6
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
7
import { faFileExport } from '@fortawesome/free-solid-svg-icons';
8
import { Typography } from 'antd';
9
import { LoggedUserContext } from '../../contexts/LoggedUserContext';
10 51f70e00 Lukáš Vlček
import { MainLayout } from '../../layouts/MainLayout';
11 8c45ccb0 hrubyjar
12
function ExportPage() {
13
    const redirecting = useUnauthRedirect('/login');
14
    const { logout, role } = useContext(LoggedUserContext);
15
    const router = useRouter();
16
17
    return redirecting || role !== 'ADMINISTRATOR' ? null : (
18
        <MainLayout>
19
            <Typography.Title level={2}>
20
                <FontAwesomeIcon icon={faFileExport} /> Export
21
            </Typography.Title>
22
        </MainLayout>
23
    );
24
}
25
26
export default ExportPage;