import { _getCanvasColor as getCanvasColor } from "@dynatrace/strato-components-preview/charts";
import { DEFAULT_ICON_BACKGROUND_COLOR } from "../../../constants.js";
const resolveIconBackground = (background) => {
  if (typeof background === "string") {
    return {
      enabled: true,
      color: getCanvasColor(background, DEFAULT_ICON_BACKGROUND_COLOR)
    };
  }
  return {
    enabled: background,
    color: getCanvasColor(DEFAULT_ICON_BACKGROUND_COLOR)
  };
};
export {
  resolveIconBackground
};
//# sourceMappingURL=resolve-icon-background.js.map
