/**
 * Transitions Redux Slice
 */

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

const { slice, actions, reducer } = createEntitySlice<Transition>({
  name: 'transitions',
  endpoint: 'transitions',
  singularName: 'Transition',
});

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

export default reducer;
