import React from 'react'; import { Label } from '@patternfly/react-core'; const EnvironmentLabels = (environments) => { const { environments: singleEnvironment, isDisabled } = environments || {}; const { name } = singleEnvironment || {}; const labelColor = isDisabled ? 'grey' : 'purple'; switch (environments) { case Array: return environments.map(env => ( )); default: return ( ); } }; export default EnvironmentLabels;