export const get = (genre, page, search, favorite, ordering) => (
  dispatch
) => {
  const url = `${API_URL}/list/?genres=${genre}&page=${page}&search=${search}&favorite=${favorite}&ordering=${ordering}`;
  axios
    .get(url)
    .then((res) => {
      dispatch({
        type: GET,
        payload: res.data,
      });
    })
    .catch((err) => console.log(err));
};