import type { Metadata } from "next";
import { headers } from "next/headers";
import { auth } from "@/lib/auth/server";
import { SecurityForm } from "@/components/settings/security-form";

export const metadata: Metadata = {};

export default async function SecurityPage() {
  const session = await auth.api.getSession({ headers: await headers() });
  if (!session) return null;

  return <SecurityForm currentEmail={session.user.email} />;
}
