mirror of
https://github.com/portainer/portainer.git
synced 2025-07-19 13:29:41 +02:00
22 lines
472 B
TypeScript
22 lines
472 B
TypeScript
|
import { Layout } from 'react-feather';
|
||
|
|
||
|
import { EnvironmentId } from '@/portainer/environments/types';
|
||
|
|
||
|
import { SidebarItem } from '../SidebarItem';
|
||
|
|
||
|
interface Props {
|
||
|
environmentId: EnvironmentId;
|
||
|
platformPath: string;
|
||
|
}
|
||
|
|
||
|
export function DashboardLink({ environmentId, platformPath }: Props) {
|
||
|
return (
|
||
|
<SidebarItem
|
||
|
to={`${platformPath}.dashboard`}
|
||
|
params={{ endpointId: environmentId }}
|
||
|
icon={Layout}
|
||
|
label="Dashboard"
|
||
|
/>
|
||
|
);
|
||
|
}
|