import { ICircuit } from '@/shared/types/circuit';
import { TableConfig, useTableManager } from '@/hooks/use-table-manager';
import { _circuits, DEFAULT_CIRCUIT_TABLE_HEAD } from '@/shared/_mock/_circuit';

const circuitConfig: TableConfig<ICircuit> = {
  initialData: _circuits,
  defaultTableHead: DEFAULT_CIRCUIT_TABLE_HEAD,
};

export function useCircuitTable() {
  return useTableManager<ICircuit>(circuitConfig);
}

