/**
 * Project Audio Tracks Redux Slice
 */

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

const { slice, actions, reducer } = createEntitySlice<ProjectAudioTrack>({
  name: 'project_audio_tracks',
  endpoint: 'project_audio_tracks',
  singularName: 'Project Audio Track',
});

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

export default reducer;
