mirror of https://github.com/portainer/portainer
				
				
				
			
		
			
				
	
	
		
			28 lines
		
	
	
		
			602 B
		
	
	
	
		
			TypeScript
		
	
	
			
		
		
	
	
			28 lines
		
	
	
		
			602 B
		
	
	
	
		
			TypeScript
		
	
	
| import { Layout } from 'react-feather';
 | |
| 
 | |
| import { EnvironmentId } from '@/portainer/environments/types';
 | |
| import { AutomationTestingProps } from '@/types';
 | |
| 
 | |
| import { SidebarItem } from '../SidebarItem';
 | |
| 
 | |
| interface Props extends AutomationTestingProps {
 | |
|   environmentId: EnvironmentId;
 | |
|   platformPath: string;
 | |
| }
 | |
| 
 | |
| export function DashboardLink({
 | |
|   environmentId,
 | |
|   platformPath,
 | |
|   'data-cy': dataCy,
 | |
| }: Props) {
 | |
|   return (
 | |
|     <SidebarItem
 | |
|       to={`${platformPath}.dashboard`}
 | |
|       params={{ endpointId: environmentId }}
 | |
|       icon={Layout}
 | |
|       label="Dashboard"
 | |
|       data-cy={dataCy}
 | |
|     />
 | |
|   );
 | |
| }
 |