import { createFileRoute } from '@tanstack/react-router'
import { LandingPage } from '@/pages/LandingPage'
import { useRedirectIfAuthenticated } from '@/hooks/useAuthGate'

export const Route = createFileRoute('/')({
  component: LandingRoute,
})

function LandingRoute() {
  useRedirectIfAuthenticated()
  return <LandingPage />
}
