import type { ITypeIncident } from "@/shared/types/flottes/incident"
import { type TableConfig, useTableManager } from "@/hooks/use-table-manager"
import { _TypesIncidents, DEFAULT_TYPE_INCIDENT_TABLE_HEAD } from "@/shared/_mock/flottes/_Incidents"

const incidentTypeTableConfig: TableConfig<ITypeIncident> = {
  initialData: _TypesIncidents,
  defaultTableHead: DEFAULT_TYPE_INCIDENT_TABLE_HEAD,
}

export function useIncidentTypeTable() {
  return useTableManager<ITypeIncident>(incidentTypeTableConfig)
}
