import { type TableConfig, useTableManager } from "@/hooks/use-table-manager"
import { _TypesReparations, DEFAULT_TYPE_REPARATION_TABLE_HEAD } from "@/shared/_mock/flottes/_intervention"
import { ITypeReparation } from "@/shared/types/flottes/intervention"

const reparationTypeConfig: TableConfig<ITypeReparation> = {
  initialData: _TypesReparations,
  defaultTableHead: DEFAULT_TYPE_REPARATION_TABLE_HEAD,
}

export function useReparationTypeTable() {
  return useTableManager<ITypeReparation>(reparationTypeConfig)
}
