import { createTableComponent } from '../Factory/createTableComponent';
import {
  fetch,
  update,
  deleteItem,
  setRefetch,
  deleteItemsByIds,
} from '../../stores/tour_pages/tour_pagesSlice';
import { loadColumns } from './configureTour_pagesCols';
import type { TourPage } from '../../types/entities';

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

export default TableTour_pages;
