import color from 'color';
const getBorderColor = _ref => {
  let {
    theme,
    disabled
  } = _ref;
  return undefined;
};
const getBackgroundColor = _ref2 => {
  let {
    theme,
    isMode,
    disabled,
    selected,
    customContainerColor
  } = _ref2;
  if (typeof customContainerColor !== 'undefined') {
    return customContainerColor;
  }
  return theme.colors.bg.canvas;
};
const getIconColor = _ref3 => {
  let {
    theme,
    isMode,
    disabled,
    selected,
    customIconColor
  } = _ref3;
  if (typeof customIconColor !== 'undefined') {
    return customIconColor;
  }
  return theme.colors.fg.default;
};
const getRippleColor = _ref4 => {
  let {
    theme,
    iconColor
  } = _ref4;
  return color(iconColor).alpha(0.32).rgb().string();
};
export const getIconButtonColor = _ref5 => {
  let {
    theme,
    disabled,
    mode,
    selected,
    customIconColor,
    customContainerColor
  } = _ref5;
  const isMode = modeToCompare => {
    return mode === modeToCompare;
  };
  const baseIconColorProps = {
    theme,
    isMode,
    disabled,
    selected
  };
  const iconColor = getIconColor({
    ...baseIconColorProps,
    customIconColor
  });
  return {
    iconColor,
    backgroundColor: getBackgroundColor({
      ...baseIconColorProps,
      customContainerColor
    }),
    rippleColor: getRippleColor({
      theme,
      iconColor
    }),
    borderColor: getBorderColor({
      theme,
      disabled
    })
  };
};
//# sourceMappingURL=utils.js.map