import { AdvancedUrlFormCard } from "@/app/(admin)/dashboard/_components/advanced-url-form-card"
import { getSession } from "@/lib/auth/session"

export default async function DashboardCreatePage() {
    const { session, redirect } = await getSession()

    if (!session) {
        redirect("/sign-in")
    }

    return (
        <div className="p-6 space-y-6">
            <div>
                <h1 className="text-2xl font-bold text-foreground mb-2">Create Short Link</h1>
            </div>
            <AdvancedUrlFormCard />
        </div>
    )
}
