Files
blitzkit/packages/bot/src/components/PercentileIndicator/index.tsx
T

21 lines
455 B
TypeScript
Raw Normal View History

2024-09-06 23:17:53 -05:00
import { Percentile } from '@blitzkit/core/src/statistics/percentiles';
2024-03-12 23:36:56 -05:00
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],
}}
/>
);
}