"use client";
import { SpecializedOpsPage } from "@/components/accounting/SpecializedOpsPage";
export default function Page() {
  return (
    <SpecializedOpsPage
      title="هشدارها"
      description="هشدارها — ثبت آستانه/شاخص پایش."
      module="monitoring"
      docType="alert"
      createLabel="ثبت هشدارها"
      fields={[
        { key: "metric_name", label: "نام شاخص", kind: "text" },
        { key: "threshold", label: "آستانه", kind: "money" },
        { key: "severity", label: "اولویت", kind: "select", options: [
          { value: "info", label: "اطلاعات" },
          { value: "warning", label: "هشدار" },
          { value: "critical", label: "بحرانی" },
        ]},
        ]}
    />
  );
}
