import { AppShell } from "@/components/app-shell"
import { CommentTemplatesManager } from "@/components/settings/comment-templates-manager"
import { SiteHeader } from "@/components/site-header"
import { requireStaffSession } from "@/lib/auth-server"

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

export default async function CommentTemplatesPage() {
  await requireStaffSession()

  return (
    <AppShell
      header={
        <SiteHeader
          title="Templates de comentário"
          lead="Mantenha respostas prontas e alinhadas com a voz da Rever."
        />
      }
    >
      <CommentTemplatesManager />
    </AppShell>
  )
}
