import { FieldsManager } from "@/components/admin/fields/fields-manager"
import { AppShell } from "@/components/app-shell"
import { SiteHeader } from "@/components/site-header"
import { requireAuthenticatedSession } from "@/lib/auth-server"

export const dynamic = "force-dynamic"

export default async function AdminCustomFieldsPage() {
  await requireAuthenticatedSession()
  return (
    <AppShell
      header={
        <SiteHeader
          title="Campos personalizados"
          lead="Crie campos adicionais para admissão, desligamento e chamados gerais mantendo a consistência visual do painel."
        />
      }
    >
      <div className="mx-auto w-full max-w-6xl space-y-8 px-6 pb-12 lg:px-8">
        <FieldsManager />
      </div>
    </AppShell>
  )
}

