"use client";
import { SpecializedOpsPage } from "@/src/modules/accounting/components/SpecializedOpsPage";
export function IntegrationPayrollPage() {
  return (
    <SpecializedOpsPage
      title="اتصال حقوق"
      description="پیکربندی اتصال حقوق — endpoint و وضعیت اتصال در سرویس حسابداری ذخیره می‌شود."
      module="integration"
      docType="payroll"
      createLabel="ثبت اتصال حقوق"
      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 },
        ]}
    />
  );
}
