import getProp from 'lodash/get';
import classificationColorsMap from './classificationColorsMap';
import { DEFAULT_CLASSIFICATION_COLOR_ID } from './constants';

function getClassificationLabelColors(classificationLabelData) {
  var colorID = getProp(classificationLabelData, 'colorID', DEFAULT_CLASSIFICATION_COLOR_ID);

  var _ref = classificationColorsMap[colorID] || classificationColorsMap[DEFAULT_CLASSIFICATION_COLOR_ID],
      fillColor = _ref.fillColor,
      strokeColor = _ref.strokeColor;

  return {
    fillColor: fillColor,
    strokeColor: strokeColor
  };
} // eslint-disable-next-line import/prefer-default-export


export { getClassificationLabelColors };
//# sourceMappingURL=utils.js.map