import { type TableConfig, useTableManager } from "@/hooks/use-table-manager"
import { _TinkerTypes, DEFAULT_TINKER_TYPE_TABLE_HEAD } from "@/shared/_mock/flottes/_fuelFees"
import { ITankerType } from "@/shared/types/flottes/fuelImport"

const supplierTypeConfig: TableConfig<ITankerType> = {
  initialData: _TinkerTypes,
  defaultTableHead: DEFAULT_TINKER_TYPE_TABLE_HEAD,
}

export function useSupplierTypeTable() {
  return useTableManager<ITankerType>(supplierTypeConfig)
}
