20 lines
508 B
TypeScript
20 lines
508 B
TypeScript
import { getSession } from "@/lib/auth/session"
|
|
import { UrlFormCard } from "../_components/url-form-card"
|
|
|
|
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="mb-2 text-2xl font-bold text-foreground">Create Short Link</h1>
|
|
</div>
|
|
<UrlFormCard />
|
|
</div>
|
|
)
|
|
}
|