{
setLoop(true);
if (hituRef.current) {
hituRef.current.triggerMotion(true);
}
}}
onMouseLeave={() => {
setLoop(false);
}}
>
{
if (frame === 5) {
const newIndex = (iconIndex + 1) % ICONS.length;
setIconIndex(newIndex);
}
}}
shapes={[
{
type: 'shape',
source: Icon,
frames: [
{
frame: 0,
x: 32,
y: 32,
scaleX: 1,
scaleY: 1,
opacity: 1,
cubic: Hitu.CUBIC_EASE,
},
],
},
]}
/>
);
}