import { useSpring, animated } from '@react-spring/web' import { useMotionConfig } from '@nivo/core' import { useTheme } from '@nivo/theming' export const CircleAnnotationOutline = ({ x, y, size }: { x: number; y: number; size: number }) => { const theme = useTheme() const { animate, config: springConfig } = useMotionConfig() const animatedProps = useSpring({ x, y, radius: size / 2, config: springConfig, immediate: !animate, }) return ( <> {theme.annotations.outline.outlineWidth > 0 && ( )} ) }