{"size": 510, "ext": "js", "max_stars_repo_path": "src/store.js", "max_stars_repo_name": "rajivnayanc/untab", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "src/store.js", "max_issues_repo_name": "rajivnayanc/untab", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "src/store.js", "max_forks_repo_name": "rajivnayanc/untab", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 18.8888888889, "max_line_length": 66, "alphanum_fraction": 0.5078431373}
import FSM from './utils/fsm';
import resetWritable from './utils/resetWritable';

export const results = resetWritable({ length: 0, items: {} });
export const searchVal = resetWritable({ query: '', plugin: {} });

export const inputState = FSM({
  initial: 'text',
  states: {
    plugin: {
      on: {
        TEXT: 'pluginText',
        BACK: 'text',
      },
    },
    pluginText: {
      on: {
        CLEAR: 'text'
      }
    },
    text: {
      on: {
        PLUGIN: 'plugin',
      },
    },
  }
});