export function getContainerStateIcon()

in src/tree/containers/ContainerProperties.ts [24:42]


export function getContainerStateIcon(state: string): ThemeIcon {
    switch (state.toLowerCase()) {
        case 'created':
        case 'dead':
        case 'exited':
        case 'removing':
        case 'terminated':
        case 'unknown':
        case 'waiting':
            return new ThemeIcon('debug-stop', new ThemeColor('debugIcon.stopForeground'));
        case 'paused':
            return new ThemeIcon('debug-pause', new ThemeColor('debugIcon.pauseForeground'));
        case 'restarting':
            return new ThemeIcon('debug-restart', new ThemeColor('debugIcon.restartForeground'));
        case 'running':
        default:
            return new ThemeIcon('debug-start', new ThemeColor('debugIcon.startForeground'));
    }
}