{"size": 265, "ext": "js", "max_stars_repo_path": "src/actions/Product.js", "max_stars_repo_name": "Guy-Gustave/recepes-catalogue", "max_stars_repo_stars_event_min_datetime": "2021-05-12T11:10:48.000Z", "max_stars_repo_stars_event_max_datetime": "2021-05-12T11:10:48.000Z", "max_issues_repo_path": "src/actions/Product.js", "max_issues_repo_name": "Guy-Gustave/recepes-catalogue", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "src/actions/Product.js", "max_forks_repo_name": "Guy-Gustave/recepes-catalogue", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": 1, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 22.0833333333, "max_line_length": 51, "alphanum_fraction": 0.7169811321}
import ActionsType from '../components/actionType';

export const setProducts = (products) => ({
  type: ActionsType.SET_PRODUCTS,
  payload: products,
});

export const selectedProduct = (product) => ({
  type: ActionsType.SELECT_PRODUCTS,
  payload: product,
});
