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 👇

336 B
Raw Blame
// ©AngelaMos | 2026
// useIssPosition.ts

import { useSnapshot } from '@/api/snapshot'
import { type IssPosition, isValidIssPosition } from '@/api/types'

export function useIssPosition(): IssPosition | undefined {
  const { data } = useSnapshot()
  const raw = data?.iss_position
  return isValidIssPosition(raw) ? raw : undefined
}