"use client"

import { type TableConfig, useTableManager } from "@/hooks/use-table-manager"
import type { IFuelFee } from "@/shared/types/flottes/fuelFee"
import { _fuelFees,  } from "@/shared/_mock/flottes/_fuelFees"
import { IFuelCardImportHistory } from "@/shared/types/flottes/suiviCartes"
import { _fuelCardImportHistory, FUEL_CARD_IMPORT_HISTORY_TABLE_HEAD } from "@/shared/_mock/flottes/_suiviCartes"

const fuelCardImportHistoryConfig: TableConfig<IFuelCardImportHistory> = {
  initialData: _fuelCardImportHistory,
  defaultTableHead: FUEL_CARD_IMPORT_HISTORY_TABLE_HEAD,
}

export function useFuelCarsImportHistoryTable() {
  return useTableManager<IFuelCardImportHistory>(fuelCardImportHistoryConfig)
}
