{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "wavy-icon",
  "title": "Wavy Icon",
  "description": "An animated wavy icon with smooth motion effects.",
  "dependencies": [
    "motion"
  ],
  "files": [
    {
      "path": "registry/chamaac/animated-icons/wavy-icon.tsx",
      "content": "\"use client\";\n\nimport { useState } from \"react\";\nimport { m, LazyMotion, domAnimation, SVGMotionProps } from \"motion/react\";\n\ninterface WavyIconProps extends SVGMotionProps<SVGSVGElement> {\n  size?: number;\n  duration?: number;\n  strokeWidth?: number;\n  isHovered?: boolean;\n}\n\nconst WavyIcon = (props: WavyIconProps) => {\n  const {\n    size = 28,\n    duration = 0.8,\n    strokeWidth = 2,\n    isHovered = false,\n    className,\n    ...restProps\n  } = props;\n  const [isHoveredInternal, setIsHoveredInternal] = useState(false);\n\n  // Use internal hover state when isHovered prop is true, otherwise animate infinitely\n  const shouldAnimate = isHovered ? isHoveredInternal : true;\n\n  const wave1Props = {\n    animate: shouldAnimate\n      ? {\n          d: [\n            \"M3 7c3 -3 6 -3 9 0s6 3 9 0\",\n            \"M3 9c3 0 6 -4 9 -4s6 4 9 4\",\n            \"M3 7c3 3 6 3 9 0s6 -3 9 0\",\n            \"M3 5c3 0 6 4 9 4s6 -4 9 -4\",\n            \"M3 7c3 -3 6 -3 9 0s6 3 9 0\",\n          ],\n        }\n      : undefined,\n    transition: {\n      duration: duration,\n      ease: \"linear\" as const,\n      repeat: isHovered ? 0 : Infinity,\n    },\n  };\n\n  const wave2Props = {\n    animate: shouldAnimate\n      ? {\n          d: [\n            \"M3 12c3 -3 6 -3 9 0s6 3 9 0\",\n            \"M3 14c3 0 6 -4 9 -4s6 4 9 4\",\n            \"M3 12c3 3 6 3 9 0s6 -3 9 0\",\n            \"M3 10c3 0 6 4 9 4s6 -4 9 -4\",\n            \"M3 12c3 -3 6 -3 9 0s6 3 9 0\",\n          ],\n        }\n      : undefined,\n    transition: {\n      duration: duration,\n      ease: \"linear\" as const,\n      repeat: isHovered ? 0 : Infinity,\n    },\n  };\n\n  const wave3Props = {\n    animate: shouldAnimate\n      ? {\n          d: [\n            \"M3 17c3 -3 6 -3 9 0s6 3 9 0\",\n            \"M3 19c3 0 6 -4 9 -4s6 4 9 4\",\n            \"M3 17c3 3 6 3 9 0s6 -3 9 0\",\n            \"M3 15c3 0 6 4 9 4s6 -4 9 -4\",\n            \"M3 17c3 -3 6 -3 9 0s6 3 9 0\",\n          ],\n        }\n      : undefined,\n    transition: {\n      duration: duration,\n      ease: \"linear\" as const,\n      repeat: isHovered ? 0 : Infinity,\n    },\n  };\n\n  return (\n    <LazyMotion features={domAnimation}>\n      <m.svg\n        {...restProps}\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={strokeWidth}\n        strokeLinecap=\"round\"\n        strokeLinejoin=\"round\"\n        className={className}\n        onMouseEnter={() => isHovered && setIsHoveredInternal(true)}\n        onMouseLeave={() => isHovered && setIsHoveredInternal(false)}\n      >\n        <path stroke=\"none\" d=\"M0 0h24v24H0z\" fill=\"none\" />\n        <m.path\n          d=\"M3 7c3 -2 6 -2 9 0s6 2 9 0\"\n          stroke=\"currentColor\"\n          fill=\"none\"\n          {...wave1Props}\n        />\n        <m.path\n          d=\"M3 12c3 -2 6 -2 9 0s6 2 9 0\"\n          stroke=\"currentColor\"\n          fill=\"none\"\n          {...wave2Props}\n        />\n        <m.path\n          d=\"M3 17c3 -2 6 -2 9 0s6 2 9 0\"\n          stroke=\"currentColor\"\n          fill=\"none\"\n          {...wave3Props}\n        />\n      </m.svg>\n    </LazyMotion>\n  );\n};\n\nexport default WavyIcon;\n",
      "type": "registry:component"
    }
  ],
  "type": "registry:component"
}