import { TableConfig, useTableManager } from '@/hooks/use-table-manager';
import { _absencesRecues, DEFAULT_ABSENCE_NONTREATED_TABLE_HEAD } from '@/shared/_mock/_rhAbsence';
import { IRHAbsence } from '../../../../types/absence-rh';

export function useAbsenceUsagerTable() {

  const absenceUsagerConfig: TableConfig<IRHAbsence> = {
    initialData: _absencesRecues,
    defaultTableHead: DEFAULT_ABSENCE_NONTREATED_TABLE_HEAD,
  }

  return useTableManager<IRHAbsence>(absenceUsagerConfig)
} 
