{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "google-chrome-windows-with-image",
  "title": "Google Chrome (Windows, w/ image)",
  "description": "Windows Google Chrome mock with bundled screen image under the omnibox; swap /images/blocks/... or pass children on the base component.",
  "registryDependencies": [
    "https://uiception.com/r/block-media.json",
    "https://uiception.com/r/google-chrome-windows.json"
  ],
  "files": [
    {
      "path": "registry/new-york/blocks/google-chrome-windows-with-image/page.tsx",
      "content": "import GoogleChromeWindowsWithImage from \"./components/google-chrome-windows-with-image\"\n\nexport default function Page() {\n  return (\n    <div className=\"px-4 py-4 md:px-6 md:py-6\">\n      <GoogleChromeWindowsWithImage />\n    </div>\n  )\n}\n",
      "type": "registry:page",
      "target": "app/google-chrome-windows-with-image/page.tsx"
    },
    {
      "path": "registry/new-york/blocks/google-chrome-windows-with-image/components/google-chrome-windows-with-image.tsx",
      "content": "import { GoogleChromeWindowsWithImageRoot } from \"./google-chrome-windows-with-image-root\"\nimport { createBlockImage } from \"@/lib/block-media\"\n\nconst blockImage = createBlockImage(\"google-chrome-windows-with-image\")\nexport default function GoogleChromeWindowsWithImage() {\n  return (\n    <GoogleChromeWindowsWithImageRoot screenSrc={blockImage(\"image.png\")} />\n  )\n}\n",
      "type": "registry:component",
      "target": "app/google-chrome-windows-with-image/components/google-chrome-windows-with-image.tsx"
    },
    {
      "path": "registry/new-york/blocks/google-chrome-windows-with-image/components/google-chrome-windows-with-image-root.tsx",
      "content": "\"use client\"\n\nimport Image from \"next/image\"\nimport { useCallback } from \"react\"\n\nimport GoogleChromeWindows from \"../../google-chrome-windows/components/google-chrome-windows\"\nimport GoogleHomePreview from \"../../google-chrome-windows/components/google-home-preview\"\nimport PageLoadingBar from \"../../google-chrome-windows/components/page-loading-bar\"\nimport { useSimulatedPageLoad } from \"../../google-chrome-windows/hooks/use-simulated-page-load\"\n\n\nconst OMNIBOX_PROMPTS = [\"vercel.com/home\"] as const\n\nexport function GoogleChromeWindowsWithImageRoot({ screenSrc }: { screenSrc: string }) {\n  const { phase, progress, startLoading } = useSimulatedPageLoad()\n\n  const handleTypedComplete = useCallback(() => {\n    startLoading()\n  }, [startLoading])\n\n  return (\n    <GoogleChromeWindows\n      omniboxTypingPrompts={OMNIBOX_PROMPTS}\n      omniboxTypingLoop={false}\n      onOmniboxTypedComplete={handleTypedComplete}\n      aspectRatio=\"1075/719\"\n      minHeight={0}\n      className=\"max-w-4xl\"\n    >\n      <div className=\"relative size-full\">\n        <PageLoadingBar progress={progress} visible={phase === \"loading\"} />\n        {phase === \"loaded\" ? (\n          <div className=\"relative size-full\">\n            <Image\n              src={screenSrc}\n              alt=\"Browser screen content\"\n              unoptimized\n              fill\n              className=\"object-cover object-top\"\n              sizes=\"(max-width: 1152px) 100vw, 1152px\"\n              loading=\"eager\"\n            />\n          </div>\n        ) : (\n          <GoogleHomePreview className=\"absolute inset-0\" />\n        )}\n      </div>\n    </GoogleChromeWindows>\n  )\n}\n",
      "type": "registry:component",
      "target": "app/google-chrome-windows-with-image/components/google-chrome-windows-with-image-root.tsx"
    },
    {
      "path": "public/images/blocks/google-chrome-windows-with-image/image.png.gitkeep",
      "content": "Place your asset here. Same base name, any supported format: jpg, jpeg, png, webp, avif, gif, or svg. Remove the .gitkeep extension from the filename.",
      "type": "registry:file",
      "target": "public/images/blocks/google-chrome-windows-with-image/image.png.gitkeep"
    }
  ],
  "type": "registry:block"
}