{"size": 371, "ext": "js", "max_stars_repo_path": "src/actions/index.js", "max_stars_repo_name": "mariosknl/book_store", "max_stars_repo_stars_event_min_datetime": "2020-08-12T17:04:51.000Z", "max_stars_repo_stars_event_max_datetime": "2020-08-12T17:04:51.000Z", "max_issues_repo_path": "src/actions/index.js", "max_issues_repo_name": "mariosknl/book_store", "max_issues_repo_issues_event_min_datetime": "2020-08-13T08:50:40.000Z", "max_issues_repo_issues_event_max_datetime": "2021-05-20T20:31:01.000Z", "max_forks_repo_path": "src/actions/index.js", "max_forks_repo_name": "mariosknl/book_store", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": 1, "max_issues_count": 22, "max_forks_count": null, "avg_line_length": 24.7333333333, "max_line_length": 99, "alphanum_fraction": 0.6145552561}
import { v4 as uuidv4 } from 'uuid';

const addBook = (content = '') => ({ type: 'CREATE_BOOK', payload: { ...content, id: uuidv4() } });

const removeBook = (content = '') => ({
  type: 'REMOVE_BOOK', payload: content,
});

const changeFilter = (content = '') => ({
  type: 'CHANGE_FILTER',
  payload: content,
});

export default { addBook, removeBook, changeFilter };
