// @flow
import { getPaletteColor } from '../../../mixins/branding';
import type { ThemeProps } from '../../../types';
import { getDisabledFillColor } from '../icon.css-rules';

export const getIconColor = ({
  theme,
  disabled,
}: ThemeProps & { disabled?: boolean }) =>
  disabled
    ? getDisabledFillColor({ theme })
    : getPaletteColor('greyscale-black')({ theme });
