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

export const dynamic = "force-dynamic"

export default async function ReportsCsatPage() {
  await requireAuthenticatedSession()
  return (
    <AppShell
      header={
        <SiteHeader
          title="Relatório de CSAT"
          lead="Visualize a satisfação dos clientes e identifique pontos de melhoria na entrega."
        />
      }
    >
      <div className="mx-auto w-full max-w-6xl px-4 pb-12 lg:px-6">
        <CsatReport />
      </div>
    </AppShell>
  )
}
