{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "plane-takeoff",
  "type": "registry:ui",
  "registryDependencies": [],
  "dependencies": ["motion"],
  "devDependencies": [],
  "files": [
    {
      "path": "plane-takeoff.tsx",
      "content": "\"use client\";\n\nimport { motion, useAnimation, type Variants } from \"motion/react\";\nimport type { HTMLAttributes } from \"react\";\nimport { forwardRef, useCallback, useImperativeHandle, useRef } from \"react\";\nimport { cn } from \"@/lib/utils\";\n\nexport interface PlaneTakeoffIconHandle {\n  startAnimation: () => void;\n  stopAnimation: () => void;\n}\n\ninterface PlaneTakeoffIconProps extends HTMLAttributes<HTMLDivElement> {\n  size?: number;\n}\n\nconst PLANE_VARIANTS: Variants = {\n  normal: {\n    x: 0,\n    y: 0,\n    opacity: 1,\n    scale: 1,\n    rotate: 0,\n  },\n  animate: {\n    x: [-25, 0],\n    y: [10, 0],\n    opacity: [0, 1],\n    scale: [0.8, 1],\n    rotate: [-15, 0],\n    transition: {\n      duration: 1.1,\n      ease: [0.25, 1, 0.5, 1],\n    },\n  },\n};\n\nconst PlaneTakeoffIcon = forwardRef<\n  PlaneTakeoffIconHandle,\n  PlaneTakeoffIconProps\n>(({ onMouseEnter, onMouseLeave, className, size = 28, ...props }, ref) => {\n  const controls = useAnimation();\n  const isControlledRef = useRef(false);\n\n  useImperativeHandle(ref, () => {\n    isControlledRef.current = ref != null;\n    return {\n      startAnimation: () => controls.start(\"animate\"),\n      stopAnimation: () => controls.start(\"normal\"),\n    };\n  }, [controls, ref]);\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      <motion.svg\n        fill=\"none\"\n        height={size}\n        stroke=\"currentColor\"\n        strokeLinecap=\"round\"\n        strokeLinejoin=\"round\"\n        strokeWidth=\"2\"\n        style={{ overflow: \"visible\" }}\n        viewBox=\"0 0 24 24\"\n        width={size}\n        xmlns=\"http://www.w3.org/2000/svg\"\n      >\n        <path d=\"M2 22h20\" />\n        <motion.path\n          animate={controls}\n          d=\"M6.36 17.4 4 17l-2-4 1.1-.55a2 2 0 0 1 1.8 0l.17.1a2 2 0 0 0 1.8 0L8 12 5 6l.9-.45a2 2 0 0 1 2.09.2l4.02 3a2 2 0 0 0 2.1.2l4.19-2.06a2.41 2.41 0 0 1 1.73-.17L21 7a1.4 1.4 0 0 1 .87 1.99l-.38.76c-.23.46-.6.84-1.07 1.08L7.58 17.2a2 2 0 0 1-1.22.18Z\"\n          initial=\"normal\"\n          style={{ originX: 0.5, originY: 0.5 }}\n          variants={PLANE_VARIANTS}\n        />\n      </motion.svg>\n    </div>\n  );\n});\n\nPlaneTakeoffIcon.displayName = \"PlaneTakeoffIcon\";\n\nexport { PlaneTakeoffIcon };\n",
      "type": "registry:ui"
    }
  ]
}
