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