{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "icon-mic",
  "title": "Mic",
  "description": "Animated Lucide mic icon — draws on, then the capsule bounces twice like a level meter picking up voice.",
  "dependencies": ["remotion"],
  "registryDependencies": ["@remocn/icons-core"],
  "files": [
    {
      "path": "registry/remocn-icons/icon-mic/index.tsx",
      "content": "\"use client\";\n\nimport { Easing, interpolate } from \"remotion\";\nimport {\n  drawnPathProps,\n  type IconAnimationProps,\n  useIconAnimation,\n} from \"@/lib/remocn-icons\";\n\nconst CAPSULE_PATH =\n  \"M12 2A3 3 0 0 1 15 5V12A3 3 0 0 1 12 15A3 3 0 0 1 9 12V5A3 3 0 0 1 12 2Z\";\nconst ARC_PATH = \"M19 10v2a7 7 0 0 1-14 0v-2\";\nconst STAND_PATH = \"M12 19v3\";\n\nconst TIMINGS = {\n  drawDurationInFrames: 16,\n  actionDelayInFrames: 2,\n  actionDurationInFrames: 24,\n  loop: false,\n} as const;\n\nexport function MicIcon({\n  animation = \"both\",\n  loop,\n  speed,\n  size = 48,\n  color = \"currentColor\",\n  strokeWidth = 2,\n  className,\n}: IconAnimationProps) {\n  const { drawProgress, scaleIn, actionProgress, actionFrame } =\n    useIconAnimation({ animation, loop, speed }, TIMINGS);\n\n  const linearDraw = 1 - (1 - drawProgress) ** (1 / 3);\n\n  const capsuleDraw = interpolate(linearDraw, [0, 0.625], [0, 1], {\n    extrapolateLeft: \"clamp\",\n    extrapolateRight: \"clamp\",\n    easing: Easing.out(Easing.quad),\n  });\n  const arcDraw = interpolate(linearDraw, [0.375, 0.875], [0, 1], {\n    extrapolateLeft: \"clamp\",\n    extrapolateRight: \"clamp\",\n    easing: Easing.out(Easing.quad),\n  });\n  const standDraw = interpolate(linearDraw, [0.625, 1], [0, 1], {\n    extrapolateLeft: \"clamp\",\n    extrapolateRight: \"clamp\",\n    easing: Easing.out(Easing.quad),\n  });\n\n  const acting = animation !== \"draw\" && actionFrame >= 0;\n\n  const capsuleScaleY = acting\n    ? interpolate(\n        actionProgress,\n        [0, 0.15, 0.3, 0.5, 0.65, 0.8, 1],\n        [1, 0.94, 1.04, 1, 0.97, 1.02, 1],\n        {\n          extrapolateLeft: \"clamp\",\n          extrapolateRight: \"clamp\",\n          easing: Easing.inOut(Easing.quad),\n        },\n      )\n    : 1;\n\n  const capsule = drawnPathProps(CAPSULE_PATH, capsuleDraw);\n  const arc = drawnPathProps(ARC_PATH, arcDraw);\n  const stand = drawnPathProps(STAND_PATH, standDraw);\n\n  const scale = 0.85 + 0.15 * scaleIn;\n  const capsuleTransform = `translate(0 ${8.5 * (1 - capsuleScaleY)}) scale(1 ${capsuleScaleY})`;\n\n  return (\n    <svg\n      className={className}\n      width={size}\n      height={size}\n      viewBox=\"0 0 24 24\"\n      fill=\"none\"\n      stroke={color}\n      strokeWidth={strokeWidth}\n      strokeLinecap=\"round\"\n      strokeLinejoin=\"round\"\n      style={{\n        overflow: \"visible\",\n        transformOrigin: \"center\",\n        transform: `scale(${scale})`,\n      }}\n    >\n      <g transform={capsuleTransform}>\n        <path\n          d={CAPSULE_PATH}\n          strokeDasharray={capsule.strokeDasharray}\n          strokeDashoffset={capsule.strokeDashoffset}\n        />\n      </g>\n      <path\n        d={ARC_PATH}\n        strokeDasharray={arc.strokeDasharray}\n        strokeDashoffset={arc.strokeDashoffset}\n      />\n      <path\n        d={STAND_PATH}\n        strokeDasharray={stand.strokeDasharray}\n        strokeDashoffset={stand.strokeDashoffset}\n      />\n    </svg>\n  );\n}\n\nexport function MicIconStatic({\n  size = 48,\n  color = \"currentColor\",\n  strokeWidth = 2,\n  className,\n}: {\n  size?: number;\n  color?: string;\n  strokeWidth?: number;\n  className?: string;\n}) {\n  return (\n    <svg\n      className={className}\n      width={size}\n      height={size}\n      viewBox=\"0 0 24 24\"\n      fill=\"none\"\n      stroke={color}\n      strokeWidth={strokeWidth}\n      strokeLinecap=\"round\"\n      strokeLinejoin=\"round\"\n    >\n      <path d={STAND_PATH} />\n      <path d={ARC_PATH} />\n      <rect x=\"9\" y=\"2\" width=\"6\" height=\"13\" rx=\"3\" />\n    </svg>\n  );\n}\n",
      "type": "registry:component",
      "target": "components/remocn/icon-mic.tsx"
    }
  ],
  "type": "registry:component"
}
