import { createTableComponent } from '../Factory/createTableComponent';
import {
  fetch,
  update,
  deleteItem,
  setRefetch,
  deleteItemsByIds,
} from '../../stores/project_audio_tracks/project_audio_tracksSlice';
import { loadColumns } from './configureProject_audio_tracksCols';
import type { ProjectAudioTrack } from '../../types/entities';

const TableProject_audio_tracks = createTableComponent<ProjectAudioTrack>({
  entityName: 'project_audio_tracks',
  sliceSelector: (state) => state.project_audio_tracks,
  fetchAction: fetch,
  updateAction: update,
  deleteAction: deleteItem,
  deleteByIdsAction: deleteItemsByIds,
  setRefetchAction: setRefetch,
  loadColumnsFunction: loadColumns,
});

export default TableProject_audio_tracks;
