import type {PDisksGroupByValue, VDisksGroupByValue} from '../constants'; import {PDisksGroupBy, VDisksGroupBy} from '../constants'; import {AllLegend} from './AllLegend'; import {CompactionLegend} from './CompactionLegend'; import {DriveTypeLegend} from './DriveTypeLegend'; import {FrontQueuesLegend} from './FrontQueuesLegend'; import {PDiskDecommitLegend} from './PDiskDecommitLegend'; import {PDiskDeviceLegend} from './PDiskDeviceLegend'; import {PDiskDriveLegend} from './PDiskDriveLegend'; import {PDiskMaintenanceLegend} from './PDiskMaintenanceLegend'; import {PDiskStateLegend} from './PDiskStateLegend'; import {SpaceLegend} from './SpaceLegend'; import {StateLegend} from './StateLegend'; import type {SpaceLegendSelectionScope} from './getSpaceLegendSelection'; export function renderVDiskLegend( vdisksGroupBy: VDisksGroupByValue, selectionScope: SpaceLegendSelectionScope, ) { switch (vdisksGroupBy) { case VDisksGroupBy.DriveType: return ; case VDisksGroupBy.State: return ; case VDisksGroupBy.Space: return ; case VDisksGroupBy.FrontQueues: return ; case VDisksGroupBy.Compaction: return ; case VDisksGroupBy.All: return ; default: return null; } } export function renderPDiskLegend( pdisksGroupBy: PDisksGroupByValue, selectionScope: SpaceLegendSelectionScope, ) { switch (pdisksGroupBy) { case PDisksGroupBy.DriveType: return ; case PDisksGroupBy.State: return ; case PDisksGroupBy.Space: return ; case PDisksGroupBy.Drive: return ; case PDisksGroupBy.Decommit: return ; case PDisksGroupBy.Maintenance: return ; case PDisksGroupBy.Device: return ; case PDisksGroupBy.All: return ; default: return null; } }