import { notFound, redirect } from "next/navigation";
import { buildPageMetadata } from "@/lib/page-metadata";
import type { Metadata } from "next";

export const metadata: Metadata = buildPageMetadata("reports", "title");

export default async function AdminReportsCategoryPage({
  params,
}: {
  params: Promise<{ category: string }>;
}) {
  const { category } = await params;
  if (!["profit", "wallet", "risk", "audit"].includes(category)) {
    notFound();
  }
  redirect("/admin/reports");
}
