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

export const getForegroundColor = ({
  theme,
  header,
}: {|
  ...ThemeProps,
  ...SectionProps,
|}) =>
  header
    ? getPaletteColor('greyscale-dark')({ theme })
    : getPaletteColor('greyscale-black')({ theme });
