Developer Hub
🔮 For applications
SDK
Azuro Waves
useWaveLevels

Hook is used to get the Wave Levels data.

ℹ️

This hook is a wrapper around getWaveLevels function.

Usage

import { useWaveLevels } from '@azuro-org/sdk'
 
const { data } = useWaveLevels()

Props

{
  waveId?: WaveId
}
type WaveId = number | 'active'

Return Value

UseQueryResult<WaveLevelData[]>
import { type UseQueryResult } from '@tanstack/react-query'
 
type WaveLevelData = {
  level: number
  name: WaveLevelName
  boost: string
  pointsNeeded: string
  comment: string
}