"use client";
import { SpecializedOpsPage } from "@/src/modules/accounting/components/SpecializedOpsPage";
export function SalesOpportunitiesPage() {
  return (
    <SpecializedOpsPage
      title="فرصت‌های فروش"
      description="ثبت فرصت فروش با احتمال و مبلغ برآوردی."
      module="sales"
      docType="opportunity"
      createLabel="فرصت جدید"
      fields={[
        { key: "party", label: "مشتری بالقوه", kind: "party", module: "sales" },
        { key: "amount", label: "مبلغ برآوردی", kind: "money" },
        { key: "probability", label: "احتمال (%)", kind: "text" },
        { key: "stage", label: "مرحله", kind: "select", options: [
          { value: "lead", label: "سرنخ" },
          { value: "qualified", label: "واجد شرایط" },
          { value: "proposal", label: "پیشنهاد" },
          { value: "won", label: "برنده" },
          { value: "lost", label: "از دست‌رفته" },
        ]},
      ]}
    />
  );
}
