2022-11-28 02:00:28 +00:00
|
|
|
import { Box } from 'lucide-react';
|
2022-06-28 07:42:42 +00:00
|
|
|
|
2022-10-23 06:53:25 +00:00
|
|
|
import { EnvironmentId } from '@/react/portainer/environments/types';
|
2022-06-23 07:25:56 +00:00
|
|
|
|
2022-06-28 07:42:42 +00:00
|
|
|
import { DashboardLink } from '../items/DashboardLink';
|
2022-06-23 07:25:56 +00:00
|
|
|
import { SidebarItem } from '../SidebarItem';
|
|
|
|
|
|
|
|
interface Props {
|
|
|
|
environmentId: EnvironmentId;
|
|
|
|
}
|
|
|
|
|
|
|
|
export function AzureSidebar({ environmentId }: Props) {
|
|
|
|
return (
|
|
|
|
<>
|
2022-06-28 16:36:40 +00:00
|
|
|
<DashboardLink
|
|
|
|
environmentId={environmentId}
|
|
|
|
platformPath="azure"
|
|
|
|
data-cy="azureSidebar-dashboard"
|
|
|
|
/>
|
2022-06-23 07:25:56 +00:00
|
|
|
<SidebarItem
|
|
|
|
to="azure.containerinstances"
|
|
|
|
params={{ endpointId: environmentId }}
|
2022-06-28 07:42:42 +00:00
|
|
|
icon={Box}
|
2022-06-23 07:25:56 +00:00
|
|
|
label="Container instances"
|
2022-06-28 16:36:40 +00:00
|
|
|
data-cy="azureSidebar-containerInstances"
|
2022-06-23 07:25:56 +00:00
|
|
|
/>
|
|
|
|
</>
|
|
|
|
);
|
|
|
|
}
|