()
| 9 | const leafControls = useAnimation() |
| 10 | |
| 11 | const handleClick = async () => { |
| 12 | setIsActivated(!isActivated) |
| 13 | await leafControls.start({ |
| 14 | scale: [1, 1.2, 1], |
| 15 | rotate: [0, 10, -10, 0], |
| 16 | transition: { duration: 0.5 }, |
| 17 | }) |
| 18 | } |
| 19 | |
| 20 | return ( |
| 21 | <motion.button |
nothing calls this directly
no outgoing calls
no test coverage detected