import { TableConfig, useTableManager } from '@/hooks/use-table-manager';
import { _fuelHistories, DEFAULT_FUELHISTORY_TABLE_HEAD } from '@/shared/_mock/flottes/_fuelImport';
import { IFuelHistory } from '@/shared/types/flottes/fuelImport';

const fuelHistoryConfig: TableConfig<IFuelHistory> = {
  initialData: _fuelHistories,
  defaultTableHead: DEFAULT_FUELHISTORY_TABLE_HEAD
};

export function useFuelHistoryTable() {
  return useTableManager<IFuelHistory>(fuelHistoryConfig);
}