(result: FeedbackResult)
| 40 | } |
| 41 | |
| 42 | function feedbackLabel(result: FeedbackResult): string { |
| 43 | if (result.action === "updated") return `${result.from_tier} \u2192 ${result.to_tier}`; |
| 44 | if (result.action === "reinforced" || result.action === "no_change") return "confirmed"; |
| 45 | if (result.action === "rate_limited") return "rate limited"; |
| 46 | return result.action; |
| 47 | } |
| 48 | |
| 49 | function feedbackTone(result: FeedbackResult): string { |
| 50 | if (result.action === "updated") return "text-n-interactive"; |