(result: FeedbackResult)
| 47 | } |
| 48 | |
| 49 | function feedbackTone(result: FeedbackResult): string { |
| 50 | if (result.action === "updated") return "text-n-interactive"; |
| 51 | if (result.ok) return "text-n-success"; |
| 52 | if (result.action === "rate_limited") return "text-n-warning"; |
| 53 | return "text-n-secondary"; |
| 54 | } |
| 55 | |
| 56 | export default function Feedback() { |
| 57 | const { recent } = useLiveData(); |