import React from 'react'; import I18nValue from '../../../../ui/i18n-value'; import { NetworkStabilityTooltip } from '../tooltips'; const GRADIENT_COLORS = [ '#037DD6', '#1876C8', '#2D70BA', '#4369AB', '#57629E', '#6A5D92', '#805683', '#9A4D71', '#B44561', '#C54055', ]; const STATUS_INFO = { low: { statusLabel: 'notBusy', tooltipLabel: 'lowLowercase', color: GRADIENT_COLORS[0], }, stable: { statusLabel: 'stable', tooltipLabel: 'stableLowercase', color: GRADIENT_COLORS[4], }, high: { statusLabel: 'busy', tooltipLabel: 'highLowercase', color: GRADIENT_COLORS[9], }, }; const getStatusInfo = (status) => { if (status <= 0.33) { return STATUS_INFO.low; } else if (status > 0.66) { return STATUS_INFO.high; } return STATUS_INFO.stable; }; const StatusSlider = () => { const statusValue = 0.5; const sliderValueNumeric = Math.round(statusValue * 10); const statusInfo = getStatusInfo(statusValue); return (
); }; export default StatusSlider;