20 lines
521 B
TypeScript
20 lines
521 B
TypeScript
import { ProjectForm } from "@/features/projects/project-form";
|
|
import { verifySession } from "@/core/security/session";
|
|
import { redirect } from "@/i18n/routing";
|
|
import { getLocale } from "next-intl/server";
|
|
|
|
export default async function CreateProjectPage() {
|
|
const session = await verifySession();
|
|
const locale = await getLocale();
|
|
|
|
if (!session) {
|
|
redirect({ href: "/admin/login", locale });
|
|
}
|
|
|
|
return (
|
|
<div className="min-h-screen bg-muted/10 px-6 py-12">
|
|
<ProjectForm />
|
|
</div>
|
|
);
|
|
}
|