MCPcopy Create free account
hub / github.com/LearnPrompt/LearnPrompt / onClap

Function onClap

src/components/ConfettiTrigger.js:6–19  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

4const ConfettiTrigger = () => {
5 const imagePath = '/img/clap-icon.png'; // 固定的图片路径
6 const onClap = () => {
7 confetti({
8 particleCount: 200,
9 startVelocity: 30,
10 angle: 90,
11 spread: 120,
12 ticks: 300,
13 gravity: 0.5,
14 origin: {
15 x: 0.5,
16 y: 0.5
17 }
18 });
19 };
20
21 return (
22 <div style={{ textAlign: 'center' }}>

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected