
import { TableConfig, useTableManager } from '@/hooks/use-table-manager';
import { _agents, DEFAULT_AGENT_TABLE_HEAD } from '@/shared/_mock/_agent';
import { IAgent } from '@/shared/types/client';

export function useAgentTable(initialData:IAgent[]) {
const agentConfig: TableConfig<IAgent> = {
  type: 'agent',
  initialData,
  defaultTableHead: DEFAULT_AGENT_TABLE_HEAD,
};


  return useTableManager<IAgent>(agentConfig);
}