import * as types from './types';

export function updateField(key, value) {
  return {
    type: types.SETTING_UPDATE,
    payload: {
      key,
      value,
    },
  };
}

import {
  CHECKBOX_UPDATE,
  RANGE_UPDATE,
  FUZZY,
} from './types';


export function updateCheckbox(key, value) {
  return {
    type: CHECKBOX_UPDATE,
    payload: {
      key,
      value,
    },
  };
}

export function updateFuzzyCheckbox(key, value) {
  return {
    type: FUZZY + CHECKBOX_UPDATE,
    payload: {
      key,
      value,
    },
  };
}

export function updateFuzzyRange(key, value) {
  return {
    type: FUZZY + RANGE_UPDATE,
    payload: {
      key,
      value,
    },
  };
}

Add actions for handling setting state in the background
Add actions for handling setting state in the background
