()
| 930 | |
| 931 | // Detailed data in indicator |
| 932 | function DataInIndicatorDetailed() { |
| 933 | const networkMetrics = useNetworkMetrics(1000); |
| 934 | const dataRateText = formatDataRate(networkMetrics.dataIn); |
| 935 | |
| 936 | return ( |
| 937 | <div className="text-right"> |
| 938 | <div className="text-sm font-medium text-gray-900 dark:text-white">{dataRateText}</div> |
| 939 | {networkMetrics.dataIn > 0 && ( |
| 940 | <div className="text-xs text-green-600 dark:text-green-400">Active</div> |
| 941 | )} |
| 942 | </div> |
| 943 | ); |
| 944 | } |
| 945 | |
| 946 | // Detailed data out indicator |
| 947 | function DataOutIndicatorDetailed() { |
nothing calls this directly
no test coverage detected