@carbon/ibm-cloud-cognitive-cdai
Version:
Carbon for Cloud & Cognitive CD&AI UI components
20 lines (18 loc) • 687 B
JavaScript
;
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.getComponentLabel = void 0;
var _storyStructure = require("../../../core/story-structure");
//
// 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.
//
var getComponentLabel = exports.getComponentLabel = function getComponentLabel(componentName) {
var title =
// if the component isn't in the master structure, put it in a lost+found section
(0, _storyStructure.getPathForComponent)('a', componentName) || "CD&AI Legacy/Lost + found/".concat(componentName);
return title;
};