import { type TableConfig, useTableManager } from '@/hooks/use-table-manager';
import { _historyAssignments, DEFAULT_HISTORY_ASSIGNMENT_TABLE_HEAD } from '@/shared/_mock/flottes/_affectation';
import { AssignmentHistory } from '@/shared/types/flottes/vehicle-affectation';

const historyAssignmentConfig: TableConfig<AssignmentHistory> = {
  initialData: _historyAssignments,
  defaultTableHead: DEFAULT_HISTORY_ASSIGNMENT_TABLE_HEAD,
};

export function useAssignmentHistoryTable() {
  return useTableManager<AssignmentHistory>(historyAssignmentConfig);
} 