Skip to content

Building 70 Projects ranging from beginner to advanced so anyone can — learn from, build upon, use as a reference, or even copy directly. Owned by my cybersecurity company 👇

340 B
Raw Blame
// ©AngelaMos | 2026
// useSpaceWeather.ts

import { useSnapshot } from '@/api/snapshot'
import { isValidSpaceWeatherData, type SpaceWeatherData } from '@/api/types'

export function useSpaceWeather(): SpaceWeatherData {
  const { data } = useSnapshot()
  const raw = data?.space_weather
  return isValidSpaceWeatherData(raw) ? raw : {}
}