extensions/xnat/src/components/XNATNavigation/XNATSessionLabel.js
/**
   * _roiCollectionCountLabel - Returns the label of ROI Collection counts.
   *
   * @returns {React.component} The component.
   */
Returns the label of ROI Collection counts.
Returns the label of ROI Collection counts .
_roiCollectionCountLabel() {
    const { contourCount, maskCount, hasRois } = this.props;
    if (!hasRois) {
      return null;
    }
    if (!contourCount && !maskCount) {
      return <>...</>;
    }
    return (
      <>
        <h6 className="xnat-navigation-tree-roi-label">
          {contourCount ? (
            <>
              <Icon name="xnat-contour" className="xnat-navigation-tree-roi-icon" />
              {` ${contourCount}  `}
            </>
          ) : null}
          {maskCount ? (
            <>
              <Icon name="xnat-mask" />
              {` ${maskCount} `}
            </>
          ) : null}
        </h6>
      </>
    );
  }
_roiCollectionCountLabel ( ) { const { contourCount , maskCount , hasRois } = this . props ; if ( ! hasRois ) { return null ; } if ( ! contourCount && ! maskCount ) { return < > ... < / > ; } return ( < > < h6 className = "xnat-navigation-tree-roi-label" > { contourCount ? ( < > < Icon name = "xnat-contour" className = "xnat-navigation-tree-roi-icon" / > { ` ${ contourCount } ` } < / > ) : null } { maskCount ? ( < > < Icon name = "xnat-mask" / > { ` ${ maskCount } ` } < / > ) : null } < / h6 > < / > ) ; }
_roiCollectionCountLabel - Returns the label of ROI Collection counts.
_roiCollectionCountLabel - Returns the label of ROI Collection counts .
// Render loading dialog.