import * as React from 'react'; import { Link } from 'react-router-dom'; import { DescriptionList, DescriptionListDescription, DescriptionListGroup, DescriptionListTerm, DrawerActions, DrawerCloseButton, DrawerHead, DrawerPanelBody, } from '@patternfly/react-core'; import { ElementModel, GraphElement } from '@patternfly/react-topology'; import { useNamespace } from '~/shared/providers/Namespace'; import PipelineIcon from '../../../../assets/pipelineIcon.svg'; import { PIPELINE_RUNS_LIST_PATH } from '../../../../routes/paths'; import { RELEASE_DESC } from '../../../../utils/pipeline-utils'; import { StatusIconWithTextLabel } from '../../../topology/StatusIcon'; import { CommitWorkflowNodeModelData } from '../visualization/commit-visualization-types'; export interface ReleaseSidePanelBodyProps { onClose: () => void; workflowNode: GraphElement; } const ReleaseSidePanel: React.FC> = ({ workflowNode, onClose, }) => { const namespace = useNamespace(); const workflowData = workflowNode.getData(); const release = workflowData.resource; return ( <> {release ? workflowNode.getLabel() : 'Release'} {release ? : null} Release {!release ? No releases set : null} {RELEASE_DESC} View pipeline runs ); }; export default ReleaseSidePanel;