{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "reddit",
  "type": "registry:ui",
  "addGlobalCss": false,
  "registryDependencies": [],
  "dependencies": [
    "motion"
  ],
  "devDependencies": [],
  "files": [
    {
      "path": "reddit-icon.tsx",
      "content": "\"use client\";\n\nimport { cn } from \"@/lib/utils\";\nimport type { Variants } from \"motion/react\";\nimport {\n LazyMotion,\n domMin,\n m,\n useAnimation,\n useReducedMotion,\n} from \"motion/react\";\nimport {\n forwardRef,\n useCallback,\n useImperativeHandle,\n useRef,\n type HTMLAttributes,\n} from \"react\";\nexport interface RedditIconHandle {\n startAnimation: () => void;\n stopAnimation: () => void;\n}\n\ninterface RedditIconProps extends Omit<\n HTMLAttributes<HTMLDivElement>,\n | \"color\"\n | \"onDrag\"\n | \"onDragStart\"\n | \"onDragEnd\"\n | \"onAnimationStart\"\n | \"onAnimationEnd\"\n | \"onAnimationIteration\"\n> {\n size?: number;\n duration?: number;\n isAnimated?: boolean;\n color?: string;\n}\n\nconst RedditIcon = forwardRef<RedditIconHandle, RedditIconProps>(\n (\n  {\n   onMouseEnter,\n   onMouseLeave,\n   className,\n   size = 24,\n   duration = 1,\n   isAnimated = true,\n   color,\n   ...props\n  },\n  ref,\n ) => {\n  const controls = useAnimation();\n  const reduced = useReducedMotion();\n  const isControlled = useRef(false);\n\n  useImperativeHandle(ref, () => {\n   isControlled.current = true;\n   return {\n    startAnimation: () =>\n     reduced ? controls.start(\"normal\") : controls.start(\"animate\"),\n    stopAnimation: () => controls.start(\"normal\"),\n   };\n  });\n\n  const handleEnter = useCallback(\n   (e?: React.MouseEvent<HTMLDivElement>) => {\n    if (!isAnimated || reduced) return;\n    if (!isControlled.current) controls.start(\"animate\");\n    else onMouseEnter?.(e as any);\n   },\n   [controls, reduced, isAnimated, onMouseEnter],\n  );\n\n  const handleLeave = useCallback(\n   (e?: React.MouseEvent<HTMLDivElement>) => {\n    if (!isControlled.current) controls.start(\"normal\");\n    else onMouseLeave?.(e as any);\n   },\n   [controls, onMouseLeave],\n  );\n\n  const eyeVariants: Variants = {\n   normal: { scaleY: 1 },\n   animate: {\n    scaleY: [1, 0.1, 1],\n    transition: {\n     duration: 0.3 * duration,\n     ease: \"easeInOut\",\n     delay: 0.25 * duration,\n    },\n   },\n  };\n\n  const antennaVariants: Variants = {\n   normal: { rotate: 0 },\n   animate: {\n    rotate: [0, -16, 12, -6, 0],\n    transition: { duration: 0.6 * duration, ease: \"easeInOut\" },\n   },\n  };\n\n  return (\n   <LazyMotion features={domMin} strict>\n    <m.div\n     className={cn(\"inline-flex items-center justify-center\", className)}\n     onMouseEnter={handleEnter}\n     onMouseLeave={handleLeave}\n     {...props}\n     style={{ color, ...props.style }}\n    >\n     <m.svg\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=\"2\"\n      strokeLinecap=\"round\"\n      strokeLinejoin=\"round\"\n      animate={controls}\n      initial=\"normal\"\n     >\n      <path d=\"M15 17C14.1556 17.6293 13.1196 18 12 18C10.8804 18 9.84437 17.6293 8.99998 17\" />\n      <m.g\n       variants={antennaVariants}\n       style={{ transformBox: \"view-box\", originX: \"12px\", originY: \"9px\" }}\n      >\n       <path d=\"M18.5 4.5C18.5 5.32843 17.8284 6 17 6C16.1716 6 15.5 5.32843 15.5 4.5C15.5 3.67157 16.1716 3 17 3C17.8284 3 18.5 3.67157 18.5 4.5Z\" />\n       <path d=\"M15.5 4.5C14.3333 4.66667 12 5.8 12 9\" />\n      </m.g>\n      <path d=\"M12 21C16.4183 21 20 18.3137 20 15C20 14.6482 19.9573 14.304 19.8799 13.9688C21.0801 13.7856 22 12.7514 22 11.5C22 10.1193 20.8807 9 19.5 9C18.4903 9 17.6221 9.59932 17.2275 10.4609C15.8253 9.55191 13.9989 9 12 9C10.0007 9 8.17381 9.55164 6.77147 10.4609C6.37678 9.59952 5.50951 9 4.49998 9C3.11927 9 1.99998 10.1193 1.99998 11.5C1.99998 12.7511 2.91935 13.7852 4.11913 13.9688C4.04169 14.3039 3.99998 14.6483 3.99998 15C3.99998 18.3137 7.58171 21 12 21Z\" />\n      <m.path\n       d=\"M15.25 13H15M15.5 13C15.5 13.2761 15.2761 13.5 15 13.5C14.7238 13.5 14.5 13.2761 14.5 13C14.5 12.7239 14.7238 12.5 15 12.5C15.2761 12.5 15.5 12.7239 15.5 13Z\"\n       variants={eyeVariants}\n       style={{ transformBox: \"view-box\", originX: \"15px\", originY: \"13px\" }}\n      />\n      <m.path\n       d=\"M9.74998 13H9.49998M9.99998 13C9.99998 13.2761 9.77612 13.5 9.49998 13.5C9.22384 13.5 8.99998 13.2761 8.99998 13C8.99998 12.7239 9.22384 12.5 9.49998 12.5C9.77612 12.5 9.99998 12.7239 9.99998 13Z\"\n       variants={eyeVariants}\n       style={{ transformBox: \"view-box\", originX: \"9.5px\", originY: \"13px\" }}\n      />\n     </m.svg>\n    </m.div>\n   </LazyMotion>\n  );\n },\n);\n\nRedditIcon.displayName = \"RedditIcon\";\nexport { RedditIcon };\n",
      "type": "registry:ui"
    }
  ]
}