You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
portainer/app/react/sidebar/NomadSidebar/NomadSidebar.tsx

31 lines
678 B

import { Clock } from 'lucide-react';
import { EnvironmentId } from '@/react/portainer/environments/types';
import { DashboardLink } from '../items/DashboardLink';
import { SidebarItem } from '../SidebarItem';
interface Props {
environmentId: EnvironmentId;
}
export function NomadSidebar({ environmentId }: Props) {
return (
<>
<DashboardLink
environmentId={environmentId}
platformPath="nomad"
data-cy="nomadSidebar-dashboard"
/>
<SidebarItem
to="nomad.jobs"
params={{ endpointId: environmentId }}
icon={Clock}
label="Nomad Jobs"
data-cy="nomadSidebar-jobs"
/>
</>
);
}