(status: string)
| 7 | const { connectionStatus } = useWebSocketStore(); |
| 8 | |
| 9 | const getStatusColor = (status: string) => { |
| 10 | switch (status) { |
| 11 | case 'connected': |
| 12 | return 'text-success'; |
| 13 | case 'connecting': |
| 14 | return 'text-warning'; |
| 15 | case 'disconnected': |
| 16 | return 'text-error'; |
| 17 | default: |
| 18 | return 'text-muted'; |
| 19 | } |
| 20 | }; |
| 21 | |
| 22 | return ( |
| 23 | <div className="bg-secondary border-t border-border px-6 py-2 flex items-center justify-between text-sm"> |