1
0
Fork 0
mirror of https://github.com/portainer/portainer.git synced 2025-07-19 13:29:41 +02:00
portainer/app/react/sidebar/EdgeComputeSidebar.tsx
Chaim Lev-Ari 7fe0712b61
feat(home): move edge device to view [EE-4559] (#8189)
Co-authored-by: matias.spinarolli <matias.spinarolli@portainer.io>
2022-12-21 10:07:34 +13:00

39 lines
1,011 B
TypeScript

import { Box, Clock, LayoutGrid, Layers } from 'lucide-react';
import { isBE } from '../portainer/feature-flags/feature-flags.service';
import { SidebarItem } from './SidebarItem';
import { SidebarSection } from './SidebarSection';
export function EdgeComputeSidebar() {
return (
<SidebarSection title="Edge compute">
<SidebarItem
to="edge.groups"
label="Edge Groups"
icon={LayoutGrid}
data-cy="portainerSidebar-edgeGroups"
/>
<SidebarItem
to="edge.stacks"
label="Edge Stacks"
icon={Layers}
data-cy="portainerSidebar-edgeStacks"
/>
<SidebarItem
to="edge.jobs"
label="Edge Jobs"
icon={Clock}
data-cy="portainerSidebar-edgeJobs"
/>
{isBE && (
<SidebarItem
to="edge.devices.waiting-room"
label="Waiting Room"
icon={Box}
data-cy="portainerSidebar-edgeDevicesWaitingRoom"
/>
)}
</SidebarSection>
);
}