/**
 * Project Memberships Redux Slice
 */

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

const { slice, actions, reducer } = createEntitySlice<ProjectMembership>({
  name: 'project_memberships',
  endpoint: 'project_memberships',
  singularName: 'Project Membership',
});

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

export default reducer;
