1
0
Fork 0
mirror of https://github.com/portainer/portainer.git synced 2025-07-20 13:59:40 +02:00
portainer/app/react/sidebar/items/VolumesLink.tsx

22 lines
470 B
TypeScript
Raw Normal View History

import { Database } from 'react-feather';
import { EnvironmentId } from '@/portainer/environments/types';
import { SidebarItem } from '../SidebarItem';
interface Props {
environmentId: EnvironmentId;
platformPath: string;
}
export function VolumesLink({ environmentId, platformPath }: Props) {
return (
<SidebarItem
to={`${platformPath}.volumes`}
params={{ endpointId: environmentId }}
icon={Database}
label="Volumes"
/>
);
}