import { weightingService } from '../services/weightingService'
import type { WeightingKey } from '../domain/needBuilder'

/**
 * Synchronous wrapper — weightingService.getDefaultWeights is a pure synchronous
 * computation with no async/side-effects. No useQuery needed.
 */
export function useDefaultWeights(assetType?: string): Record<WeightingKey, number> {
  return weightingService.getDefaultWeights(assetType)
}
