import { TableConfig, useTableManager } from '@/hooks/use-table-manager';
import { IAddRoadmap } from '@/shared/types/driver';
import { _AddNewRoadmap, DEFAULT_NEW_ROADMAP_TABLE_HEAD } from '@/shared/_mock/_roadMap';
import { PlanningRequest } from '@/shared/types/roadMap';

const clientConfig: TableConfig<PlanningRequest> = {
  initialData: _AddNewRoadmap,
  defaultTableHead: DEFAULT_NEW_ROADMAP_TABLE_HEAD,
};
export function useAddNewRoadMapTable() {
  return useTableManager<PlanningRequest>(clientConfig);
}