"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[64959],{64959:(n,o,e)=>{e.r(o),e.d(o,{default:()=>r});var s=e(67841),t=e(89207);let r=()=>(0,s.jsx)(t.default,{title:"Popping Arrows Demo",layout:"split",size:"wide",splitRatio:.6,minPreviewHeight:"10rem",dependencies:{"use-sound":"4.0.3"},files:{"/App.js":'\nimport React from \'react\';\nimport useSound from \'use-sound\';\n\nimport styles from \'./PopsDemo.module.css\';\n\nconst ARROW_DELAY = 125;\nconst SOUND_URL = \'/sounds/rising-pops.mp3\';\n\nfunction PopsDemo() {\n const [isHovering, setIsHovering] = React.useState(false);\n const [play, { stop }] = useSound(SOUND_URL, { volume: 0.5 });\n\n return (\n {\n setIsHovering(true);\n play();\n }}\n onMouseLeave={() => {\n setIsHovering(false);\n stop();\n }}\n >\n Hover over me!\n \n \n\n \n \n \n \n \n );\n}\n\nexport default PopsDemo;\n ',"/PopsDemo.module.css":{hidden:!0,code:"\n.btn {\n --color-primary: hsl(240deg 95% 62%);\n\n position: absolute;\n top: 50%;\n left: 50%;\n transform: translate(-50%, -50%);\n display: inline-flex;\n align-items: center;\n gap: 8px;\n border: none;\n padding: 0;\n background: transparent;\n color: black;\n font-size: 1.125rem;\n font-weight: 600;\n white-space: nowrap;\n}\n.arrowSvg {\n flex-shrink: 0;\n transform: translateY(2px);\n}\n "}}})}}]); //# sourceMappingURL=64959.295b69164185f091.js.map