import type { Metadata } from "next";
import { requireAuth } from "@/lib/auth/guards";
import { PageHeader } from "@/components/app/page-header";
import { SettingsClient } from "@/components/app/settings-client";

export const metadata: Metadata = { title: "Settings" };

export default async function SettingsPage() {
  const session = await requireAuth();
  return (
    <>
      <PageHeader title="Settings" description="Manage your account." />
      <SettingsClient name={session.user.name} email={session.user.email} />
    </>
  );
}
