2024-10-21 13:57:45 -06:00
|
|
|
import Landing from "@/components/landing"
|
|
|
|
import { currentUser } from "@clerk/nextjs"
|
|
|
|
import { redirect } from "next/navigation"
|
2024-04-15 23:25:14 -04:00
|
|
|
|
|
|
|
export default async function Home() {
|
2024-10-21 13:57:45 -06:00
|
|
|
const user = await currentUser()
|
2024-04-15 23:25:14 -04:00
|
|
|
|
|
|
|
if (user) {
|
2024-10-21 13:57:45 -06:00
|
|
|
redirect("/dashboard")
|
2024-04-15 23:25:14 -04:00
|
|
|
}
|
2024-04-11 05:14:10 -04:00
|
|
|
|
2024-10-21 13:57:45 -06:00
|
|
|
return <Landing />
|
2024-03-19 12:13:18 -04:00
|
|
|
}
|