import { INITIAL_CLIENT_DATA } from '@/shared/_mock/_client';
import { TabConfig, useTabsManager } from '../../../../hooks/use-tabs-manager';
import { IClient } from '@/shared/types/client';

const clientConfig: TabConfig<IClient> = {
  type: 'client',
  listTitle: 'Liste des clients',
  newItemTitle: 'Nouveau client',
  initialData: INITIAL_CLIENT_DATA,
  getItemCode: (client) => client.id ,
};

export function useClientTabs() {
  return useTabsManager<IClient>(clientConfig);
}

