@carbon/ibm-cloud-cognitive-cdai
Version:
Carbon for Cloud & Cognitive CD&AI UI components
14 lines (13 loc) • 534 B
JavaScript
//
// Copyright IBM Corp. 2020, 2021
//
// This source code is licensed under the Apache-2.0 license found in the
// LICENSE file in the root directory of this source tree.
//
import { getPathForComponent } from '../../../core/story-structure';
export var getComponentLabel = function getComponentLabel(componentName) {
var title =
// if the component isn't in the master structure, put it in a lost+found section
getPathForComponent('a', componentName) || "CD&AI Legacy/Lost + found/".concat(componentName);
return title;
};