import { createFileRoute } from '@tanstack/react-router'
import { useRequireAuth } from '@/features/auth/guards'
import { AirPage } from '@/features/streaming/AirPage'

export const Route = createFileRoute('/dashboard')({ component: DashboardPage })

function DashboardPage() {
  const { isReady } = useRequireAuth()

  if (!isReady) return null

  return <AirPage />
}
