// @flow
import type { CheckIconProps } from './check-icon.proptypes';
import { getPaletteColor } from '../../../mixins/branding';
import type { PatchworkTheme } from '../../../themes';

export const getStrokeColor = ({
  theme,
  inverted,
}: {|
  theme: PatchworkTheme,
  inverted: boolean,
|}) => getPaletteColor(inverted ? 'white' : 'brand-primary-base')({ theme });

export const getFillColor = ({
  theme,
  inverted,
}: {|
  theme: PatchworkTheme,
  inverted: boolean,
|}) => getPaletteColor(inverted ? 'brand-primary-base' : 'white')({ theme });

export const getSize = ({ size }: CheckIconProps) => {
  switch (size) {
    case 'sm':
      return '39px';

    case 'lg':
    default:
      return '51px';
  }
};
