mirror of
https://github.com/portainer/portainer.git
synced 2026-06-23 04:30:16 +00:00
26 lines
666 B
TypeScript
26 lines
666 B
TypeScript
import { Database, GitBranch } from 'lucide-react';
|
|
|
|
import { SidebarItem } from './SidebarItem';
|
|
import { SidebarSection } from './SidebarSection';
|
|
|
|
export function AppDeliverySidebar({ isAdmin }: { isAdmin: boolean }) {
|
|
return (
|
|
<SidebarSection title="App Delivery">
|
|
<SidebarItem
|
|
label="Workflows"
|
|
to="portainer.gitops.workflows"
|
|
icon={GitBranch}
|
|
data-cy="portainerSidebar-workflows"
|
|
/>
|
|
{isAdmin && (
|
|
<SidebarItem
|
|
label="Sources"
|
|
to="portainer.gitops.sources"
|
|
icon={Database}
|
|
data-cy="portainerSidebar-sources"
|
|
/>
|
|
)}
|
|
</SidebarSection>
|
|
);
|
|
}
|