2022-06-28 07:42:42 +00:00
|
|
|
import { Database } from 'react-feather';
|
|
|
|
|
2022-10-23 06:53:25 +00:00
|
|
|
import { EnvironmentId } from '@/react/portainer/environments/types';
|
2022-06-28 16:36:40 +00:00
|
|
|
import { AutomationTestingProps } from '@/types';
|
2022-06-28 07:42:42 +00:00
|
|
|
|
|
|
|
import { SidebarItem } from '../SidebarItem';
|
|
|
|
|
2022-06-28 16:36:40 +00:00
|
|
|
interface Props extends AutomationTestingProps {
|
2022-06-28 07:42:42 +00:00
|
|
|
environmentId: EnvironmentId;
|
|
|
|
platformPath: string;
|
|
|
|
}
|
|
|
|
|
2022-06-28 16:36:40 +00:00
|
|
|
export function VolumesLink({
|
|
|
|
environmentId,
|
|
|
|
platformPath,
|
|
|
|
'data-cy': dataCy,
|
|
|
|
}: Props) {
|
2022-06-28 07:42:42 +00:00
|
|
|
return (
|
|
|
|
<SidebarItem
|
|
|
|
to={`${platformPath}.volumes`}
|
|
|
|
params={{ endpointId: environmentId }}
|
|
|
|
icon={Database}
|
|
|
|
label="Volumes"
|
2022-06-28 16:36:40 +00:00
|
|
|
data-cy={dataCy}
|
2022-06-28 07:42:42 +00:00
|
|
|
/>
|
|
|
|
);
|
|
|
|
}
|