{"size": 480, "ext": "js", "max_stars_repo_path": "src/lib/components/tabs/utils.js", "max_stars_repo_name": "ZER0-PHC/emerald-gateway-components", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "src/lib/components/tabs/utils.js", "max_issues_repo_name": "ZER0-PHC/emerald-gateway-components", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "src/lib/components/tabs/utils.js", "max_forks_repo_name": "ZER0-PHC/emerald-gateway-components", "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": 24.0, "max_line_length": 63, "alphanum_fraction": 0.68125}

export const handleTokenSelection = (tokens, id) => {
  var isSelected = tokens[id].selected;
  tokens[id].selected = !isSelected;
  console.log("new tokens", tokens);
};

export const handleCollectionSelection = (collections, id) => {
  var isSelected = collections[id].selected;
  collections[id].selected = !isSelected;
  console.log("new collections", collections);
}

export const handleEvent = (event, id, dispatch) => {
  dispatch("message", {
    event,
    id,
  });
};
