// @flow
import type { ThemeProps } from '../../../types';
import { getPaletteColor } from '../../../mixins/branding';

export const getForeground = ({
  selected = false,
  theme,
}: {|
  ...ThemeProps,
  selected?: boolean,
|}) => {
  return selected
    ? getPaletteColor('white')({ theme })
    : getPaletteColor('greyscale-black')({ theme });
};

export const getBackground = ({
  selected = false,
  theme,
}: {|
  ...ThemeProps,
  selected?: boolean,
|}) => {
  return selected
    ? getPaletteColor('greyscale-black')({ theme })
    : 'transparent';
};
