import { useMemo } from 'react' const HealthHeart = ({ health, size }: { health: number; size: number }) => { const fillColor = useMemo(() => { if (!health) return 'var(--fgd-4)' if (health <= 25) { return 'var(--down)' } if (health <= 50) { return 'var(--warning)' } if (health <= 75) { return 'var(--up)' } return 'var(--up)' }, [health]) const styles = { color: fillColor, // filter: `drop-shadow(0px 0px 8px ${fillColor})`, height: `${size}px`, width: `${size}px`, } return ( {/* 15 && health < 50 ? '1s' : health >= 50 ? '2s' : '0.33s' : '0s' } repeatCount="indefinite" /> 15 && health < 50 ? '1s' : health >= 50 ? '2s' : '0.33s' : '0s' } repeatCount="indefinite" /> */} ) } export default HealthHeart