{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "copy-icon",
  "title": "Copy Icon",
  "description": "An animated copy icon with smooth motion effects.",
  "dependencies": [
    "motion"
  ],
  "files": [
    {
      "path": "registry/chamaac/animated-icons/copy-icon.tsx",
      "content": "\"use client\";\n\nimport { useState } from \"react\";\nimport { m, LazyMotion, domAnimation, SVGMotionProps } from \"motion/react\";\n\ninterface CopyIconProps extends SVGMotionProps<SVGSVGElement> {\n  size?: number;\n  duration?: number;\n  strokeWidth?: number;\n  isHovered?: boolean;\n}\n\nconst CopyIcon = (props: CopyIconProps) => {\n  const {\n    size = 28,\n    duration = 1.5,\n    strokeWidth = 2,\n    isHovered = false,\n    className,\n    ...restProps\n  } = props;\n  const [isHoveredInternal, setIsHoveredInternal] = useState(false);\n\n  const shouldAnimate = isHovered ? isHoveredInternal : true;\n\n  const rectAnimationProps = {\n    animate: shouldAnimate\n      ? {\n          x: [8, 4, 8],\n          y: [8, 4, 8],\n        }\n      : { x: 4, y: 4 },\n    transition: {\n      duration: duration,\n      ease: \"easeInOut\" 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\n        <m.rect\n          width=\"12\"\n          height=\"12\"\n          rx=\"2\"\n          stroke=\"currentColor\"\n          strokeWidth={strokeWidth}\n          fill=\"none\"\n          {...rectAnimationProps}\n        />\n\n        <rect\n          x=\"8\"\n          y=\"8\"\n          width=\"12\"\n          height=\"12\"\n          rx=\"2\"\n          className=\"fill-gray-100 dark:fill-[#111111]\"\n          stroke=\"currentColor\"\n          strokeWidth={strokeWidth}\n        />\n      </m.svg>\n    </LazyMotion>\n  );\n};\n\nexport default CopyIcon;\n",
      "type": "registry:component"
    }
  ],
  "type": "registry:component"
}