summaryrefslogtreecommitdiff
path: root/src/components/proxies/ProxyLatency.tsx
blob: 48e55af574fe6606b469972875530b8fc0d09e0f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
import * as React from 'react';

import s0 from './ProxyLatency.module.scss';

type ProxyLatencyProps = {
  number: number;
  color: string;
};

export function ProxyLatency({ number, color }: ProxyLatencyProps) {
  return (
    <span className={s0.proxyLatency} style={{ color }}>
      <span>{number} ms</span>
    </span>
  );
}