{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "bitcoin",
  "type": "registry:ui",
  "addGlobalCss": false,
  "registryDependencies": [],
  "dependencies": [
    "motion"
  ],
  "devDependencies": [],
  "files": [
    {
      "path": "bitcoin-icon.tsx",
      "content": "\"use client\";\n\nimport { cn } from \"@/lib/utils\";\nimport type { Variants } from \"motion/react\";\nimport {\n LazyMotion,\n domMin,\n m,\n useAnimation,\n useReducedMotion,\n} from \"motion/react\";\nimport {\n forwardRef,\n useCallback,\n useImperativeHandle,\n useRef,\n type HTMLAttributes,\n} from \"react\";\nexport interface BitcoinIconHandle {\n startAnimation: () => void;\n stopAnimation: () => void;\n}\n\ninterface BitcoinIconProps extends Omit<\n HTMLAttributes<HTMLDivElement>,\n | \"color\"\n | \"onDrag\"\n | \"onDragStart\"\n | \"onDragEnd\"\n | \"onAnimationStart\"\n | \"onAnimationEnd\"\n | \"onAnimationIteration\"\n> {\n size?: number;\n duration?: number;\n isAnimated?: boolean;\n color?: string;\n}\n\nconst BitcoinIcon = forwardRef<BitcoinIconHandle, BitcoinIconProps>(\n (\n  {\n   onMouseEnter,\n   onMouseLeave,\n   className,\n   size = 24,\n   duration = 1,\n   isAnimated = true,\n   color,\n   ...props\n  },\n  ref,\n ) => {\n  const controls = useAnimation();\n  const reduced = useReducedMotion();\n  const isControlled = useRef(false);\n\n  useImperativeHandle(ref, () => {\n   isControlled.current = true;\n   return {\n    startAnimation: () =>\n     reduced ? controls.start(\"normal\") : controls.start(\"animate\"),\n    stopAnimation: () => controls.start(\"normal\"),\n   };\n  });\n\n  const handleEnter = useCallback(\n   (e?: React.MouseEvent<HTMLDivElement>) => {\n    if (!isAnimated || reduced) return;\n    if (!isControlled.current) controls.start(\"animate\");\n    else onMouseEnter?.(e as any);\n   },\n   [controls, reduced, isAnimated, onMouseEnter],\n  );\n\n  const handleLeave = useCallback(\n   (e?: React.MouseEvent<HTMLDivElement>) => {\n    if (!isControlled.current) controls.start(\"normal\");\n    else onMouseLeave?.(e as any);\n   },\n   [controls, onMouseLeave],\n  );\n\n  const groupSway: Variants = {\n   normal: { scale: 1, rotate: 0, y: 0 },\n   animate: {\n    scale: [1, 1.055, 1],\n    rotate: [0, -2, 2, 0],\n    y: [0, -1, 0],\n    transition: { duration: 0.9 * duration, ease: \"easeInOut\" },\n   },\n  };\n\n  const drawStroke = (delay: number, dur = 0.6): Variants => ({\n   normal: { pathLength: 0, opacity: 1 },\n   animate: {\n    pathLength: 1,\n    opacity: 1,\n    transition: {\n     duration: dur * duration,\n     ease: \"easeInOut\",\n     delay: delay * duration,\n    },\n   },\n  });\n\n  const spark = (delay: number): Variants => ({\n   normal: { scale: 0.6, opacity: 0 },\n   animate: {\n    scale: [0.6, 1.25, 0.6],\n    opacity: [0, 0.9, 0],\n    transition: {\n     duration: 0.35 * duration,\n     ease: \"easeOut\",\n     delay: delay * duration,\n    },\n   },\n  });\n\n  return (\n   <LazyMotion features={domMin} strict>\n    <m.div\n     className={cn(\"inline-flex items-center justify-center\", className)}\n     onMouseEnter={handleEnter}\n     onMouseLeave={handleLeave}\n     {...props}\n     style={{ color, ...props.style }}\n    >\n     <m.svg\n      xmlns=\"http://www.w3.org/2000/svg\"\n      width={size}\n      height={size}\n      viewBox=\"0 0 24 24\"\n      fill=\"none\"\n      stroke=\"currentColor\"\n      strokeWidth=\"2\"\n      strokeLinecap=\"round\"\n      strokeLinejoin=\"round\"\n      className=\"lucide lucide-bitcoin-icon lucide-bitcoin\"\n     >\n      <m.g variants={groupSway} initial=\"normal\" animate={controls}>\n       <g>\n        <path d=\"M11.767 19.089c4.924.868 6.14-6.025 1.216-6.894\" />\n        <path d=\"M10.551 19.089L5.86 18.047\" />\n        <path d=\"M10.551 19.089l-.347 1.97\" />\n        <path d=\"M12.114 12.195c4.924.869 6.14-6.025 1.215-6.893\" />\n        <path d=\"M12.114 12.195l-3.94-.694\" />\n        <path d=\"M13.329 5.301L8.29 4.26\" />\n        <path d=\"M14.198 5.302l.348-1.97\" />\n        <path d=\"M7.48 20.364l3.126-17.727\" />\n       </g>\n\n       <m.path\n        d=\"M11.767 19.089c4.924.868 6.14-6.025 1.216-6.894\"\n        pathLength={1}\n        variants={drawStroke(0.06, 0.55)}\n        initial=\"normal\"\n        animate={controls}\n       />\n       <m.path\n        d=\"M10.551 19.089L5.86 18.047\"\n        pathLength={1}\n        variants={drawStroke(0.12, 0.45)}\n        initial=\"normal\"\n        animate={controls}\n       />\n       <m.path\n        d=\"M10.551 19.089l-.347 1.97\"\n        pathLength={1}\n        variants={drawStroke(0.18, 0.4)}\n        initial=\"normal\"\n        animate={controls}\n       />\n       <m.path\n        d=\"M12.114 12.195c4.924.869 6.14-6.025 1.215-6.893\"\n        pathLength={1}\n        variants={drawStroke(0.26, 0.6)}\n        initial=\"normal\"\n        animate={controls}\n       />\n       <m.path\n        d=\"M12.114 12.195l-3.94-.694\"\n        pathLength={1}\n        variants={drawStroke(0.32, 0.45)}\n        initial=\"normal\"\n        animate={controls}\n       />\n       <m.path\n        d=\"M13.329 5.301L8.29 4.26\"\n        pathLength={1}\n        variants={drawStroke(0.4, 0.45)}\n        initial=\"normal\"\n        animate={controls}\n       />\n       <m.path\n        d=\"M14.198 5.302l.348-1.97\"\n        pathLength={1}\n        variants={drawStroke(0.46, 0.4)}\n        initial=\"normal\"\n        animate={controls}\n       />\n       <m.path\n        d=\"M7.48 20.364l3.126-17.727\"\n        pathLength={1}\n        variants={drawStroke(0.54, 0.75)}\n        initial=\"normal\"\n        animate={controls}\n       />\n\n       <m.circle\n        cx=\"12.2\"\n        cy=\"12.2\"\n        r=\"0.9\"\n        fill=\"currentColor\"\n        variants={spark(0.28)}\n        initial=\"normal\"\n        animate={controls}\n       />\n       <m.circle\n        cx=\"10.6\"\n        cy=\"19.1\"\n        r=\"0.8\"\n        fill=\"currentColor\"\n        variants={spark(0.16)}\n        initial=\"normal\"\n        animate={controls}\n       />\n       <m.circle\n        cx=\"14.3\"\n        cy=\"5.3\"\n        r=\"0.7\"\n        fill=\"currentColor\"\n        variants={spark(0.48)}\n        initial=\"normal\"\n        animate={controls}\n       />\n      </m.g>\n     </m.svg>\n    </m.div>\n   </LazyMotion>\n  );\n },\n);\n\nBitcoinIcon.displayName = \"BitcoinIcon\";\nexport { BitcoinIcon };\n",
      "type": "registry:ui"
    }
  ]
}