/**
 * Tour Pages Redux Slice
 */

import { createEntitySlice } from '../createEntitySlice';
import type { TourPage } from '../../types/entities';

const { slice, actions, reducer } = createEntitySlice<TourPage>({
  name: 'tour_pages',
  endpoint: 'tour_pages',
  singularName: 'Tour Page',
});

export const {
  fetch,
  create,
  update,
  deleteItem,
  deleteItemsByIds,
  uploadCsv,
  setRefetch,
} = actions;
export const tour_pagesSlice = slice;

export default reducer;
