import React from 'react';
import { Icon } from '@chakra-ui/react';
import { Barcode, FloppyDisk, Info, ListBullets, TerminalWindow, UsersThree, WifiHigh } from '@phosphor-icons/react';
import { Route } from 'models/Routes';
const DefaultConfigurationsPage = React.lazy(() => import('pages/DefaultConfigurations'));
const DevicePage = React.lazy(() => import('pages/Device'));
const DevicesPage = React.lazy(() => import('pages/Devices'));
const FirmwarePage = React.lazy(() => import('pages/Firmware'));
const NotificationsPage = React.lazy(() => import('pages/Notifications'));
const ProfilePage = React.lazy(() => import('pages/Profile'));
const ScriptsPage = React.lazy(() => import('pages/Scripts'));
const SystemPage = React.lazy(() => import('pages/SystemPage'));
const UsersPage = React.lazy(() => import('pages/UsersPage'));
const routes: Route[] = [
{
authorized: ['root', 'partner', 'admin', 'csr', 'system'],
path: '/',
name: 'devices.title',
icon: (active: boolean) => (
),
component: DevicesPage,
},
{
authorized: ['root', 'partner', 'admin', 'csr', 'system'],
path: '/firmware',
name: 'analytics.firmware',
icon: (active: boolean) => (
),
component: FirmwarePage,
},
{
authorized: ['root'],
path: '/scripts/:id',
name: 'script.other',
icon: (active: boolean) => (
),
component: ScriptsPage,
},
{
authorized: ['root', 'partner', 'admin', 'csr', 'system'],
path: '/configurations',
name: 'configurations.title',
icon: (active: boolean) => (
),
component: DefaultConfigurationsPage,
},
{
authorized: ['root', 'partner', 'admin', 'csr', 'system'],
path: '/logs',
name: 'controller.devices.logs',
icon: (active: boolean) => (
),
component: NotificationsPage,
},
{
hidden: true,
authorized: ['root', 'partner', 'admin', 'csr', 'system'],
path: '/devices/:id',
name: 'devices.one',
icon: (active: boolean) => (
),
component: DevicePage,
},
{
hidden: true,
authorized: ['root', 'partner', 'admin', 'csr', 'system'],
path: '/account',
name: 'account.title',
icon: (active: boolean) => (
),
component: ProfilePage,
},
{
authorized: ['root', 'partner', 'admin', 'csr', 'system'],
path: '/users',
name: 'users.title',
icon: (active: boolean) => (
),
component: UsersPage,
},
{
authorized: ['root', 'partner', 'admin'],
path: '/system',
name: 'system.title',
icon: (active: boolean) => (
),
component: SystemPage,
},
];
export default routes;