{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "send",
  "type": "registry:ui",
  "registryDependencies": [],
  "dependencies": ["motion"],
  "devDependencies": [],
  "files": [
    {
      "path": "send.tsx",
      "content": "\"use client\";\n\nimport { motion, useAnimation } from \"motion/react\";\nimport type { HTMLAttributes } from \"react\";\nimport { forwardRef, useCallback, useImperativeHandle, useRef } from \"react\";\nimport { cn } from \"@/lib/utils\";\n\nexport interface SendIconHandle {\n  startAnimation: () => void;\n  stopAnimation: () => void;\n}\n\ninterface SendIconProps extends HTMLAttributes<HTMLDivElement> {\n  size?: number;\n}\n\nconst SendIcon = forwardRef<SendIconHandle, SendIconProps>(\n  ({ onMouseEnter, onMouseLeave, className, size = 28, ...props }, ref) => {\n    const controls = useAnimation();\n    const isControlledRef = useRef(false);\n\n    useImperativeHandle(ref, () => {\n      isControlledRef.current = true;\n      return {\n        startAnimation: () => controls.start(\"animate\"),\n        stopAnimation: () => controls.start(\"normal\"),\n      };\n    });\n\n    const handleMouseEnter = useCallback(\n      (e: React.MouseEvent<HTMLDivElement>) => {\n        if (isControlledRef.current) {\n          onMouseEnter?.(e);\n        } else {\n          controls.start(\"animate\");\n        }\n      },\n      [controls, onMouseEnter]\n    );\n\n    const handleMouseLeave = useCallback(\n      (e: React.MouseEvent<HTMLDivElement>) => {\n        if (isControlledRef.current) {\n          onMouseLeave?.(e);\n        } else {\n          controls.start(\"normal\");\n        }\n      },\n      [controls, onMouseLeave]\n    );\n\n    return (\n      <div\n        className={cn(className)}\n        onMouseEnter={handleMouseEnter}\n        onMouseLeave={handleMouseLeave}\n        {...props}\n      >\n        <svg\n          className=\"overflow-visible\"\n          fill=\"none\"\n          height={size}\n          stroke=\"currentColor\"\n          strokeLinecap=\"round\"\n          strokeLinejoin=\"round\"\n          strokeWidth=\"2\"\n          viewBox=\"0 0 24 24\"\n          width={size}\n          xmlns=\"http://www.w3.org/2000/svg\"\n        >\n          <motion.g\n            animate={controls}\n            transition={{ duration: 0.5 }}\n            variants={{\n              normal: { x: 0, y: 0, scale: 1 },\n              animate: {\n                x: 3,\n                y: -3,\n                scale: 0.8,\n              },\n            }}\n          >\n            <path d=\"M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z\" />\n            <path d=\"m21.854 2.147-10.94 10.939\" />\n          </motion.g>\n          <motion.path\n            animate={controls}\n            d=\"M -3 28 C -0.5 26.8 1.6 24.6 3.3 22 C 4.8 19.7 5.2 17.6 4.2 16.1 C 3.2 14.7 1.4 14.5 0.3 15.8 C -0.9 17.2 -0.6 19.4 1.2 20.4 C 3.4 21.5 6.4 19.4 9 15.8\"\n            fill=\"none\"\n            initial={{ opacity: 0, pathLength: 0 }}\n            stroke=\"currentColor\"\n            strokeDasharray=\"2 2\"\n            strokeWidth=\"1\"\n            transition={{ duration: 0.55, delay: 0.1 }}\n            variants={{\n              normal: {\n                pathLength: 0,\n                opacity: 0,\n                translateX: -3,\n                translateY: 3,\n                transition: { duration: 0.3 },\n              },\n              animate: {\n                pathLength: 1,\n                opacity: 1,\n                translateX: 0,\n                translateY: 0,\n              },\n            }}\n          />\n        </svg>\n      </div>\n    );\n  }\n);\n\nSendIcon.displayName = \"SendIcon\";\n\nexport { SendIcon };\n",
      "type": "registry:ui"
    }
  ]
}
