@stolostron/multicluster-sdk
Version:
Provides extensions and APIs that dynamic plugins can use to leverage multicluster capabilities provided by Red Hat Advanced Cluster Management.
14 lines • 556 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.useHubClusterName = useHubClusterName;
/* Copyright Contributors to the Open Cluster Management project */
const useHubConfigurationItem_1 = require("../internal/useHubConfigurationItem");
/**
* Hook that provides hub cluster name.
*
* @returns Array with `hubclustername`, `loaded` and `error` values.
*/
function useHubClusterName() {
return (0, useHubConfigurationItem_1.useHubConfigurationItem)('localHubName');
}
//# sourceMappingURL=useHubClusterName.js.map