{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "location-icon",
  "title": "Location Icon",
  "description": "An animated location icon that rotates like a compass.",
  "dependencies": [
    "motion"
  ],
  "files": [
    {
      "path": "registry/chamaac/animated-icons/location-icon.tsx",
      "content": "\"use client\";\n\nimport { useState } from \"react\";\nimport {\n  m,\n  LazyMotion,\n  domAnimation,\n  SVGMotionProps,\n  Easing,\n} from \"motion/react\";\n\ninterface LocationIconProps extends SVGMotionProps<SVGSVGElement> {\n  size?: number;\n  duration?: number;\n  strokeWidth?: number;\n  isHovered?: boolean;\n  ease?: Easing;\n}\n\nconst LocationIcon = (props: LocationIconProps) => {\n  const {\n    size = 28, // Icon size in pixels\n    duration = 1, // Animation duration in seconds\n    strokeWidth = 2, // SVG stroke width\n    isHovered = false, // When true, animate only on hover\n    ease = \"easeOut\", // Animation easing function\n    className,\n    ...restProps\n  } = props;\n\n  const [isHoveredInternal, setIsHoveredInternal] = useState(false);\n\n  const shouldAnimate = isHovered ? isHoveredInternal : true;\n\n  // Shared transition properties\n  const transition = {\n    duration: duration,\n    ease: ease,\n    repeat: isHovered ? 0 : Infinity,\n    repeatDelay: 1, // Reduced delay for smoother feel\n  };\n\n  // Pin bounce animation\n  const pinVariants = {\n    normal: { y: 0 },\n    animate: {\n      y: [0, -6, 0, -3, 0],\n      transition: transition,\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        overflow=\"visible\"\n        onMouseEnter={() => isHovered && setIsHoveredInternal(true)}\n        onMouseLeave={() => isHovered && setIsHoveredInternal(false)}\n      >\n        {/* Location pin - animating group */}\n        <m.g\n          variants={pinVariants}\n          initial=\"normal\"\n          animate={shouldAnimate ? \"animate\" : \"normal\"}\n        >\n          <path stroke=\"none\" d=\"M0 0h24v24H0z\" fill=\"none\" />\n          <path d=\"M9 11a3 3 0 1 0 6 0a3 3 0 0 0 -6 0\" />\n          <path d=\"M17.657 16.657l-4.243 4.243a2 2 0 0 1 -2.827 0l-4.244 -4.243a8 8 0 1 1 11.314 0z\" />\n        </m.g>\n      </m.svg>\n    </LazyMotion>\n  );\n};\n\nexport default LocationIcon;\n",
      "type": "registry:component"
    }
  ],
  "type": "registry:component"
}