import { AppShell } from "@/components/app-shell"
import { DashboardListView } from "@/components/dashboards/dashboard-list"
import { SiteHeader } from "@/components/site-header"
import { requireStaffSession } from "@/lib/auth-server"

export const dynamic = "force-dynamic"

export default async function DashboardsPage() {
  await requireStaffSession()
  return (
    <AppShell
      header={
        <SiteHeader
          title="Dashboards"
          lead="Monte relatórios personalizados com filtros compartilhados, exportação e modo TV."
        />
      }
    >
      <div className="mx-auto w-full max-w-6xl px-4 pb-12 lg:px-6">
        <DashboardListView />
      </div>
    </AppShell>
  )
}
