// @flow
import type { NextIconProps } from './next-icon.proptypes';
import { getPaletteColor } from '../../../mixins/branding';
import type { ThemeProps } from '../../../types';

export const getFillColor = ({ theme, disabled }: ThemeProps & NextIconProps) =>
  getPaletteColor(disabled ? 'greyscale-medium' : 'brand-primary-base')({
    theme,
  });

export const getStrokeColor = ({ theme }: ThemeProps) =>
  getPaletteColor('white')({ theme });

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

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