import { TableConfig, useTableManager } from '@/hooks/use-table-manager';
import { IIntervention } from '@/shared/types/flottes/intervention';
import { _REPAIRS, DEFAULT_REPAIRS_TABLE_HEAD } from '@/shared/_mock/flottes/_intervention';

const interventionConfig: TableConfig<IIntervention> = {
  initialData: _REPAIRS,
  defaultTableHead: DEFAULT_REPAIRS_TABLE_HEAD,
};

export function useInterventionTable() {
  return useTableManager<IIntervention>(interventionConfig);
}