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

export const getStrokeColor = ({
  theme,
  disabled,
}: {|
  ...ThemeProps,
  ...ArrowBackProps,
|}) =>
  disabled
    ? getDisabledFillColor({ theme })
    : getPaletteColor('greyscale-darker')({ theme });
