"use client";
import { SpecializedOpsPage } from "@/src/modules/accounting/components/SpecializedOpsPage";
export function IntegrationCrmPage() {
  return (
    <SpecializedOpsPage
      title="اتصال CRM"
      description="پیکربندی اتصال CRM — endpoint و وضعیت اتصال در سرویس حسابداری ذخیره می‌شود."
      module="integration"
      docType="crm"
      createLabel="ثبت اتصال CRM"
      fields={[
        { key: "provider", label: "ارائه‌دهنده", kind: "text" },
        { key: "endpoint", label: "آدرس / Endpoint", kind: "text" },
        { key: "status", label: "وضعیت", kind: "select", options: [
          { value: "active", label: "فعال" },
          { value: "inactive", label: "غیرفعال" },
          { value: "error", label: "خطا" },
        ]},
        { key: "amount", label: "سقف/حجم (اختیاری)", kind: "money", required: false },
        ]}
    />
  );
}
