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

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

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

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