13 lines
308 B
TypeScript
13 lines
308 B
TypeScript
import { auth } from "@/lib/auth/auth"
|
|
import { redirect } from "next/navigation"
|
|
import { DesignWizard } from "@/components/planner/design-wizard"
|
|
|
|
export default async function NewDesignPage() {
|
|
const session = await auth()
|
|
if (!session?.user) {
|
|
redirect("/login")
|
|
}
|
|
|
|
return <DesignWizard />
|
|
}
|