"use client"

import { type TableConfig, useTableManager } from "@/hooks/use-table-manager"
import { _fuelFees,  } from "@/shared/_mock/flottes/_fuelFees"
import { _fuelCardImportHistory, FUEL_CARD_IMPORT_HISTORY_TABLE_HEAD } from "@/shared/_mock/flottes/_suiviCartes"
import { IVehicleList } from "@/shared/types/flottes/anomaly-config"
import { _vehicleList, VEHICLE_LIST_TABLE_HEAD } from "@/shared/_mock/flottes/_anomaly-config"

const fuelCardImportHistoryConfig: TableConfig<IVehicleList> = {
  initialData: _vehicleList,
  defaultTableHead: VEHICLE_LIST_TABLE_HEAD,
}

export function useVehicleListTable() {
  return useTableManager<IVehicleList>(fuelCardImportHistoryConfig)
}
