// Quarantine reason configuration

export type QuarantineReason =
  | "duplicate"
  | "spam"
  | "untrusted_high_confidence"
  | "manual_review"
  | "validation_failed"
  | "signature_invalid";

export const reasonLabels: Record<QuarantineReason, string> = {
  duplicate: "Duplicate",
  spam: "Spam",
  untrusted_high_confidence: "Untrusted High Confidence",
  manual_review: "Manual Review",
  validation_failed: "Validation Failed",
  signature_invalid: "Invalid Signature",
};

export const reasonColors: Record<QuarantineReason, string> = {
  duplicate: "bg-amber-500/20 text-amber-700 dark:text-amber-300",
  spam: "bg-red-500/20 text-red-700 dark:text-red-300",
  untrusted_high_confidence: "bg-purple-500/20 text-purple-700 dark:text-purple-300",
  manual_review: "bg-blue-500/20 text-blue-700 dark:text-blue-300",
  validation_failed: "bg-orange-500/20 text-orange-700 dark:text-orange-300",
  signature_invalid: "bg-rose-500/20 text-rose-700 dark:text-rose-300",
};

export const reasonDescriptions: Record<QuarantineReason, string> = {
  duplicate: "This assertion duplicates existing content",
  spam: "Content flagged as spam or low-quality",
  untrusted_high_confidence: "High confidence claim from untrusted source",
  manual_review: "Flagged for manual administrator review",
  validation_failed: "Failed schema or content validation",
  signature_invalid: "Cryptographic signature verification failed",
};

// Default fallback for unknown reasons
export const DEFAULT_REASON_COLOR = "bg-gray-500/20 text-gray-700 dark:text-gray-300";
