@openshift-console/dynamic-plugin-sdk
Version:
Provides core APIs, types and utilities used by dynamic plugins at runtime.
7 lines (6 loc) • 570 B
JavaScript
// Type guards
export const isClusterOverviewInventoryItem = (e) => e.type === 'console.cluster-overview/inventory-item';
export const isClusterOverviewUtilizationItem = (e) => e.type === 'console.cluster-overview/utilization-item';
export const isClusterOverviewMultilineUtilizationItem = (e) => e.type === 'console.cluster-overview/multiline-utilization-item';
export const isOverviewDetailItem = (e) => e.type === 'console.dashboards/overview/detail/item';
export const isCustomOverviewDetailItem = (e) => e.type === 'console.dashboards/custom/overview/detail/item';