import * as React from 'react'; import Hitu, { HiTuRefObject } from '@ant-design/hitu'; import { Shape } from '@ant-design/hitu/lib/interface'; const HOVER_LOOP = false; export interface InteractiveIconProps { shapes: Shape[]; debug?: boolean; frames?: number; } export default function InteractiveIcon({ shapes, debug, frames }: InteractiveIconProps) { const hituRef = React.useRef(null); const [loop, setLoop] = React.useState(false); return ( { if (HOVER_LOOP) { setLoop(true); } if (hituRef.current) { hituRef.current.triggerMotion(true); } }} onMouseLeave={() => { setLoop(false); }} > ); }