import { AppShell } from "@/components/app-shell"
import { CategoryReport } from "@/components/reports/category-report"
import { SiteHeader } from "@/components/site-header"
import { requireAuthenticatedSession } from "@/lib/auth-server"

export const dynamic = "force-dynamic"

export default async function ReportsCategoriesPage() {
  await requireAuthenticatedSession()
  return (
    <AppShell
      header={
        <SiteHeader
          title="Categorias e agentes"
          lead="Acompanhe os temas mais atendidos e descubra quais agentes concentram cada tipo de solicitação."
        />
      }
    >
      <div className="mx-auto w-full max-w-6xl px-4 pb-12 lg:px-6">
        <CategoryReport />
      </div>
    </AppShell>
  )
}

