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