import { Icon } from '@/ui/Icon'; import { Text } from '@/ui/Text'; import { Badge } from '@/ui/Badge'; import { Group } from '@/ui/Group'; import { ChevronDown, ChevronUp, Minus } from 'lucide-react'; import React from 'react'; interface DeltaChipProps { value: number; type?: 'rank' | 'rating'; } export function DeltaChip({ value, type = 'rank' }: DeltaChipProps) { if (value === 0) { return ( 0 ); } const isPositive = value > 0; const variant = isPositive ? 'success' : 'critical'; const IconComponent = isPositive ? ChevronUp : ChevronDown; const absoluteValue = Math.abs(value); return ( {absoluteValue} ); }