{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "icon-image",
  "title": "Image",
  "description": "Animated Lucide image icon — the frame draws on, then the mountain redraws and the sun drifts into place like a photo developing.",
  "dependencies": ["remotion"],
  "registryDependencies": ["@remocn/icons-core"],
  "files": [
    {
      "path": "registry/remocn-icons/icon-image/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 FRAME_PATH =\n  \"M5 3H19A2 2 0 0 1 21 5V19A2 2 0 0 1 19 21H5A2 2 0 0 1 3 19V5A2 2 0 0 1 5 3Z\";\nconst SUN_PATH =\n  \"M9 7 A2 2 0 0 1 11 9 A2 2 0 0 1 9 11 A2 2 0 0 1 7 9 A2 2 0 0 1 9 7\";\nconst MOUNTAIN_PATH = \"M6 21 15.086 11.914A2 2 0 0 1 17.914 11.914L21 15\";\n\nconst TIMINGS = {\n  drawDurationInFrames: 18,\n  actionDelayInFrames: 2,\n  actionDurationInFrames: 20,\n  loop: false,\n} as const;\n\nexport function ImageIcon({\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 frameDraw = interpolate(linearDraw, [0, 0.667], [0, 1], {\n    extrapolateLeft: \"clamp\",\n    extrapolateRight: \"clamp\",\n    easing: Easing.out(Easing.quad),\n  });\n  const sunDraw = interpolate(linearDraw, [0.444, 0.778], [0, 1], {\n    extrapolateLeft: \"clamp\",\n    extrapolateRight: \"clamp\",\n    easing: Easing.out(Easing.quad),\n  });\n  const mountainDraw = interpolate(linearDraw, [0.556, 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 mountainProgress = acting\n    ? interpolate(actionProgress, [0, 0.6], [0, 1], {\n        extrapolateLeft: \"clamp\",\n        extrapolateRight: \"clamp\",\n        easing: Easing.out(Easing.quad),\n      })\n    : mountainDraw;\n  const sunShiftY = acting\n    ? interpolate(actionProgress, [0, 0.6, 0.9], [1, -0.5, 0], {\n        extrapolateLeft: \"clamp\",\n        extrapolateRight: \"clamp\",\n        easing: Easing.out(Easing.quad),\n      })\n    : 0;\n  const sunOpacity = acting\n    ? interpolate(actionProgress, [0, 0.5], [0.6, 1], {\n        extrapolateLeft: \"clamp\",\n        extrapolateRight: \"clamp\",\n      })\n    : 1;\n\n  const frame = drawnPathProps(FRAME_PATH, frameDraw);\n  const sun = drawnPathProps(SUN_PATH, acting ? 1 : sunDraw);\n  const mountain = drawnPathProps(MOUNTAIN_PATH, mountainProgress);\n\n  const scale = 0.85 + 0.15 * scaleIn;\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      <path\n        d={FRAME_PATH}\n        strokeDasharray={frame.strokeDasharray}\n        strokeDashoffset={frame.strokeDashoffset}\n      />\n      <g transform={`translate(0 ${sunShiftY})`} opacity={sunOpacity}>\n        <path\n          d={SUN_PATH}\n          strokeDasharray={sun.strokeDasharray}\n          strokeDashoffset={sun.strokeDashoffset}\n        />\n      </g>\n      <path\n        d={MOUNTAIN_PATH}\n        strokeDasharray={mountain.strokeDasharray}\n        strokeDashoffset={mountain.strokeDashoffset}\n      />\n    </svg>\n  );\n}\n\nexport function ImageIconStatic({\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      <rect width=\"18\" height=\"18\" x=\"3\" y=\"3\" rx=\"2\" ry=\"2\" />\n      <circle cx=\"9\" cy=\"9\" r=\"2\" />\n      <path d=\"m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21\" />\n    </svg>\n  );\n}\n",
      "type": "registry:component",
      "target": "components/remocn/icon-image.tsx"
    }
  ],
  "type": "registry:component"
}
