funktechnik-schubert-website/app/admin/login/page.tsx
2026-07-03 22:25:04 +02:00

13 lines
511 B
TypeScript

import type { Metadata } from "next";
import AdminLoginForm from "@/components/admin/AdminLoginForm";
export const metadata: Metadata = {
title: "Admin Login | Funktechnik Schubert",
robots: { index: false, follow: false },
};
export default async function AdminLoginPage({ searchParams }: { searchParams: Promise<{ next?: string }> }) {
const params = await searchParams;
const nextPath = params.next?.startsWith("/admin") ? params.next : "/admin";
return <AdminLoginForm nextPath={nextPath} />;
}