import { createTableComponent } from '../Factory/createTableComponent';
import {
  fetch,
  update,
  deleteItem,
  setRefetch,
  deleteItemsByIds,
} from '../../stores/presigned_url_requests/presigned_url_requestsSlice';
import { loadColumns } from './configurePresigned_url_requestsCols';
import type { PresignedUrlRequest } from '../../types/entities';

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

export default TablePresigned_url_requests;
