import { color } from './colors';

/**
 * A list of accent preset.
 */
export type AccentPresets =
  | 'primary-accent'
  | 'secondary-accent'
  | 'success-accent'
  | 'warning-accent'
  | 'error-accent';

/**
 * A list of preset names.
 */
export type Presets = 'primary' | 'secondary' | 'warning' | 'success' | 'error';

/**
 * All the presets in one type.
 */
export type PresetsWithAccent = Presets | AccentPresets;

/**
 * Status bar style and color for each preset
 */
export const statusBarPresets: Record<Presets, string> = {
  primary: color.palette.white,
  secondary: color.palette.black,
  warning: color.warning,
  success: color.success,
  error: color.error,
};

export type StatusBarStyle = 'light' | 'dark';

export const statusBarStylePresets: Record<Presets, StatusBarStyle> = {
  primary: 'dark',
  secondary: 'light',
  warning: 'dark',
  success: 'dark',
  error: 'light',
};
