/**
 * Publish Events Redux Slice
 */

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

const { slice, actions, reducer } = createEntitySlice<PublishEvent>({
  name: 'publish_events',
  endpoint: 'publish_events',
  singularName: 'Publish Event',
});

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

export default reducer;
