2022-11-28 02:00:28 +00:00
|
|
|
import { Box, Clock, LayoutGrid, Layers } from 'lucide-react';
|
2022-06-28 07:42:42 +00:00
|
|
|
|
2022-12-20 21:07:34 +00:00
|
|
|
import { isBE } from '../portainer/feature-flags/feature-flags.service';
|
|
|
|
|
2022-06-23 07:25:56 +00:00
|
|
|
import { SidebarItem } from './SidebarItem';
|
|
|
|
import { SidebarSection } from './SidebarSection';
|
|
|
|
|
|
|
|
export function EdgeComputeSidebar() {
|
|
|
|
return (
|
|
|
|
<SidebarSection title="Edge compute">
|
2022-06-28 16:36:40 +00:00
|
|
|
<SidebarItem
|
|
|
|
to="edge.groups"
|
|
|
|
label="Edge Groups"
|
2022-11-28 02:00:28 +00:00
|
|
|
icon={LayoutGrid}
|
2022-06-28 16:36:40 +00:00
|
|
|
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"
|
|
|
|
/>
|
2022-12-20 21:07:34 +00:00
|
|
|
{isBE && (
|
|
|
|
<SidebarItem
|
|
|
|
to="edge.devices.waiting-room"
|
|
|
|
label="Waiting Room"
|
|
|
|
icon={Box}
|
|
|
|
data-cy="portainerSidebar-edgeDevicesWaitingRoom"
|
|
|
|
/>
|
|
|
|
)}
|
2022-06-23 07:25:56 +00:00
|
|
|
</SidebarSection>
|
|
|
|
);
|
|
|
|
}
|