import { AppShell } from "@/components/app-shell"
import { ChecklistTemplatesManager } from "@/components/settings/checklist-templates-manager"
import { SiteHeader } from "@/components/site-header"
import { requireAdminSession } from "@/lib/auth-server"

export const dynamic = "force-dynamic"
export const runtime = "nodejs"

export default async function ChecklistTemplatesPage() {
  await requireAdminSession()

  return (
    <AppShell
      header={
        <SiteHeader
          title="Templates de checklist"
          lead="Crie modelos globais ou por empresa para padronizar tarefas do atendimento."
        />
      }
    >
      <div className="mx-auto w-full max-w-6xl px-6 pb-12 lg:px-8">
        <ChecklistTemplatesManager />
      </div>
    </AppShell>
  )
}

