mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-11-17 10:53:57 +01:00
21 lines
441 B
TypeScript
21 lines
441 B
TypeScript
import { Percentile } from '../../constants/percentiles';
|
|||
|
|
import { PERCENTILE_COLORS } from './constants';
|
||
|
|
|
||
|
|
interface PercentileIndicatorProps {
|
||
|
|
percentile: Percentile;
|
||
|
|
}
|
||
|
|
|
||
|
|
export default function PercentileIndicator({
|
||
|
|
percentile,
|
||
|
|
}: PercentileIndicatorProps) {
|
||
|
|
return (
|
||
|
|
<div
|
||
|
|
style={{
|
||
|
|
width: 8,
|
||
|
|
height: 8,
|
||
|
|
borderRadius: 4,
|
||
|
|
backgroundColor: PERCENTILE_COLORS[percentile],
|
||
|
|
}}
|
||
|
|
/>
|
||
|
|
);
|
||
|
|
}
|