mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-23 03:29:51 +02:00
22 lines
441 B
TypeScript
22 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],
|
|
}}
|
|
/>
|
|
);
|
|
}
|