{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "message-icon",
  "title": "Message Icon",
  "description": "An animated message icon.",
  "dependencies": [
    "motion"
  ],
  "files": [
    {
      "path": "registry/chamaac/animated-icons/message-icon.tsx",
      "content": "\"use client\";\n\nimport { useState } from \"react\";\nimport { m, LazyMotion, domAnimation, SVGMotionProps } from \"motion/react\";\n\ninterface MessageIconProps\n  extends Omit<SVGMotionProps<SVGSVGElement>, \"strokeWidth\"> {\n  size?: number;\n  duration?: number;\n  strokeWidth?: number;\n  isHovered?: boolean;\n}\n\nconst MessageIcon = (props: MessageIconProps) => {\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 dot1Props = {\n    animate: shouldAnimate ? { opacity: [0.3, 1, 0.3] } : { opacity: 1 },\n    transition: {\n      duration: duration,\n      repeat: isHovered ? 0 : Infinity,\n      delay: 0,\n    },\n  };\n\n  const dot2Props = {\n    animate: shouldAnimate ? { opacity: [0.3, 1, 0.3] } : { opacity: 1 },\n    transition: {\n      duration: duration,\n      repeat: isHovered ? 0 : Infinity,\n      delay: duration * 0.2,\n    },\n  };\n\n  const dot3Props = {\n    animate: shouldAnimate ? { opacity: [0.3, 1, 0.3] } : { opacity: 1 },\n    transition: { duration: duration, repeat: isHovered ? 0 : Infinity },\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        <path d=\"M4 21v-13a3 3 0 0 1 3 -3h10a3 3 0 0 1 3 3v6a3 3 0 0 1 -3 3h-9l-4 4\" />\n        <m.circle\n          cx=\"8\"\n          cy=\"11\"\n          r=\"1\"\n          fill=\"currentColor\"\n          stroke=\"none\"\n          {...dot1Props}\n        />\n        <m.circle\n          cx=\"12\"\n          cy=\"11\"\n          r=\"1\"\n          fill=\"currentColor\"\n          stroke=\"none\"\n          {...dot2Props}\n        />\n        <m.circle\n          cx=\"16\"\n          cy=\"11\"\n          r=\"1\"\n          fill=\"currentColor\"\n          stroke=\"none\"\n          {...dot3Props}\n        />\n      </m.svg>\n    </LazyMotion>\n  );\n};\n\nexport default MessageIcon;\n",
      "type": "registry:component"
    }
  ],
  "type": "registry:component"
}