mirror of https://github.com/portainer/portainer
31 lines
679 B
TypeScript
31 lines
679 B
TypeScript
|
import { Clock } from 'react-feather';
|
||
|
|
||
|
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"
|
||
|
/>
|
||
|
</>
|
||
|
);
|
||
|
}
|