{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "annoyed",
  "type": "registry:ui",
  "registryDependencies": [],
  "dependencies": ["motion"],
  "devDependencies": [],
  "files": [
    {
      "path": "annoyed.tsx",
      "content": "\"use client\";\n\nimport type { Variants } from \"motion/react\";\nimport { motion, useAnimation } from \"motion/react\";\nimport type { HTMLAttributes } from \"react\";\nimport { forwardRef, useCallback, useImperativeHandle, useRef } from \"react\";\n\nimport { cn } from \"@/lib/utils\";\n\nexport interface AnnoyedIconHandle {\n  startAnimation: () => void;\n  stopAnimation: () => void;\n}\n\ninterface AnnoyedIconProps extends HTMLAttributes<HTMLDivElement> {\n  size?: number;\n}\n\nconst AnnoyedIcon = forwardRef<AnnoyedIconHandle, AnnoyedIconProps>(\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) controls.start(\"animate\");\n        onMouseEnter?.(e);\n      },\n      [controls, onMouseEnter]\n    );\n\n    const handleMouseLeave = useCallback(\n      (e: React.MouseEvent<HTMLDivElement>) => {\n        if (!isControlledRef.current) controls.start(\"normal\");\n        onMouseLeave?.(e);\n      },\n      [controls, onMouseLeave]\n    );\n\n    const faceVariants: Variants = {\n      normal: {\n        scale: 1,\n        transition: { duration: 0.2, ease: \"easeOut\" },\n      },\n      animate: {\n        scale: 1.05,\n        transition: {\n          duration: 0.3,\n          ease: \"easeOut\",\n        },\n      },\n    };\n\n    const mouthVariants: Variants = {\n      normal: {\n        scaleX: 1,\n        y: 0,\n        transition: { duration: 0.2, ease: \"easeOut\" },\n      },\n      animate: {\n        scaleX: 0.8,\n        y: 1,\n        transition: {\n          duration: 0.3,\n          ease: \"easeOut\",\n        },\n      },\n    };\n\n    const leftEyebrowVariants: Variants = {\n      normal: {\n        rotate: 0,\n        y: 0,\n        x: 0,\n        transition: { duration: 0.2, ease: \"easeOut\" },\n      },\n      animate: {\n        rotate: 15,\n        y: -1,\n        x: -0.5,\n        transition: {\n          duration: 0.25,\n          ease: \"easeOut\",\n        },\n      },\n    };\n\n    const rightEyebrowVariants: Variants = {\n      normal: {\n        rotate: 0,\n        y: 0,\n        x: 0,\n        transition: { duration: 0.2, ease: \"easeOut\" },\n      },\n      animate: {\n        rotate: 15,\n        y: -1,\n        x: 0.5,\n        transition: {\n          duration: 0.25,\n          ease: \"easeOut\",\n          delay: 0.05,\n        },\n      },\n    };\n\n    return (\n      <div\n        className={cn(className)}\n        onMouseEnter={handleMouseEnter}\n        onMouseLeave={handleMouseLeave}\n        {...props}\n      >\n        <motion.svg\n          animate={controls}\n          fill=\"none\"\n          height={size}\n          initial=\"normal\"\n          stroke=\"currentColor\"\n          strokeLinecap=\"round\"\n          strokeLinejoin=\"round\"\n          strokeWidth=\"2\"\n          variants={faceVariants}\n          viewBox=\"0 0 24 24\"\n          width={size}\n          xmlns=\"http://www.w3.org/2000/svg\"\n        >\n          <circle cx=\"12\" cy=\"12\" r=\"10\" />\n          <motion.path\n            animate={controls}\n            d=\"M8 15h8\"\n            initial=\"normal\"\n            variants={mouthVariants}\n          />\n          <motion.path\n            animate={controls}\n            d=\"M8 9h2\"\n            initial=\"normal\"\n            variants={leftEyebrowVariants}\n          />\n          <motion.path\n            animate={controls}\n            d=\"M14 9h2\"\n            initial=\"normal\"\n            variants={rightEyebrowVariants}\n          />\n        </motion.svg>\n      </div>\n    );\n  }\n);\n\nAnnoyedIcon.displayName = \"AnnoyedIcon\";\n\nexport { AnnoyedIcon };\n",
      "type": "registry:ui"
    }
  ]
}
