| 166 | } |
| 167 | |
| 168 | function toneClass(tone: OperationDisplay['tone']): string { |
| 169 | switch (tone) { |
| 170 | case 'buy': return 'border-green/30 bg-green/5 text-green' |
| 171 | case 'sell': return 'border-red/30 bg-red/5 text-red' |
| 172 | case 'danger': return 'border-red/35 bg-red/10 text-red' |
| 173 | case 'modify': return 'border-yellow-400/30 bg-yellow-400/5 text-yellow-300' |
| 174 | default: return 'border-border bg-bg-tertiary text-text-muted' |
| 175 | } |
| 176 | } |
| 177 | |
| 178 | function statusClass(status: string | undefined): string { |
| 179 | switch (status) { |