{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "browser-mockup",
  "title": "Browser Mockup",
  "description": "A realistic browser chrome frame in macOS, Windows, or mobile Safari style, with tabs, a URL bar, and a content area for an image, video, or arbitrary React children.",
  "dependencies": [
    "clsx",
    "tailwind-merge"
  ],
  "files": [
    {
      "path": "registry/new-york/browser-mockup/browser-mockup.tsx",
      "content": "\"use client\";\n\nimport * as React from \"react\";\nimport { clsx, type ClassValue } from \"clsx\";\nimport { twMerge } from \"tailwind-merge\";\n\nfunction cn(...inputs: ClassValue[]) {\n  return twMerge(clsx(inputs));\n}\n\nexport type BrowserMockupStyle = \"mac\" | \"windows\" | \"mobile\";\nexport type BrowserMockupFit = \"cover\" | \"contain\";\n\nexport interface BrowserMockupProps extends Omit<React.ComponentPropsWithoutRef<\"div\">, \"children\" | \"style\"> {\n  browserStyle?: BrowserMockupStyle;\n  darkMode?: boolean;\n  children?: React.ReactNode;\n  media?: string;\n  mediaAlt?: string;\n  mobileMedia?: string;\n  videoUrl?: string;\n  autoPlay?: boolean;\n  fit?: BrowserMockupFit;\n  contentBg?: string;\n  url?: string;\n  pageTitle?: string;\n  tabCount?: number;\n  tabTitles?: string[];\n  showLock?: boolean;\n  borderRadius?: number;\n  showShadow?: boolean;\n}\n\nfunction isVideoUrl(url: string): boolean {\n  return /\\.(mp4|webm|mov|m4v)(\\?.*)?$/i.test(url);\n}\n\nfunction cleanDomain(url: string): string {\n  return (url || \"\").replace(/^https?:\\/\\//, \"\").replace(/\\/$/, \"\");\n}\n\nconst TrafficLights = ({ size = 12 }: { size?: number }) => (\n  <div aria-hidden=\"true\" className=\"flex items-center gap-2\">\n    <span className=\"block rounded-full\" style={{ width: size, height: size, background: \"#ed6a5e\" }} />\n    <span className=\"block rounded-full\" style={{ width: size, height: size, background: \"#f4bf4f\" }} />\n    <span className=\"block rounded-full\" style={{ width: size, height: size, background: \"#61c454\" }} />\n  </div>\n);\n\nconst WinControls = ({ c = \"rgba(255,255,255,0.75)\" }: { c?: string }) => (\n  <div aria-hidden=\"true\" className=\"flex h-full items-center\">\n    {[\n      <svg key=\"min\" width={11} height={11} viewBox=\"0 0 12 12\">\n        <line x1=\"2\" y1=\"6\" x2=\"10\" y2=\"6\" stroke={c} strokeWidth=\"1\" />\n      </svg>,\n      <svg key=\"max\" width={11} height={11} viewBox=\"0 0 12 12\">\n        <rect x=\"2\" y=\"2\" width=\"8\" height=\"8\" fill=\"none\" stroke={c} strokeWidth=\"1\" />\n      </svg>,\n      <svg key=\"close\" width={11} height={11} viewBox=\"0 0 12 12\">\n        <line x1=\"2\" y1=\"2\" x2=\"10\" y2=\"10\" stroke={c} strokeWidth=\"1\" />\n        <line x1=\"10\" y1=\"2\" x2=\"2\" y2=\"10\" stroke={c} strokeWidth=\"1\" />\n      </svg>,\n    ].map((icon, i) => (\n      <div key={i} className=\"flex h-[30px] w-9 items-center justify-center\">\n        {icon}\n      </div>\n    ))}\n  </div>\n);\n\nconst IconBack = ({ size = 15, c = \"rgba(0,0,0,0.5)\" }: { size?: number; c?: string }) => (\n  <svg aria-hidden=\"true\" width={size} height={size} viewBox=\"0 0 24 24\" fill=\"none\" stroke={c} strokeWidth=\"2.2\" strokeLinecap=\"round\" strokeLinejoin=\"round\">\n    <polyline points=\"15 18 9 12 15 6\" />\n  </svg>\n);\nconst IconForward = ({ size = 15, c = \"rgba(0,0,0,0.5)\" }: { size?: number; c?: string }) => (\n  <svg aria-hidden=\"true\" width={size} height={size} viewBox=\"0 0 24 24\" fill=\"none\" stroke={c} strokeWidth=\"2.2\" strokeLinecap=\"round\" strokeLinejoin=\"round\">\n    <polyline points=\"9 18 15 12 9 6\" />\n  </svg>\n);\nconst IconRefresh = ({ size = 14, c = \"rgba(0,0,0,0.5)\" }: { size?: number; c?: string }) => (\n  <svg aria-hidden=\"true\" width={size} height={size} viewBox=\"0 0 24 24\" fill=\"none\" stroke={c} strokeWidth=\"2.2\" strokeLinecap=\"round\" strokeLinejoin=\"round\">\n    <polyline points=\"23 4 23 10 17 10\" />\n    <polyline points=\"1 20 1 14 7 14\" />\n    <path d=\"M3.51 9a9 9 0 0 1 14.85-3.36L23 10M1 14l4.64 4.36A9 9 0 0 0 20.49 15\" />\n  </svg>\n);\nconst IconLock = ({ size = 11, c = \"rgba(0,0,0,0.55)\" }: { size?: number; c?: string }) => (\n  <svg aria-hidden=\"true\" width={size} height={size} viewBox=\"0 0 24 24\" fill=\"none\" stroke={c} strokeWidth=\"2.2\" strokeLinecap=\"round\" strokeLinejoin=\"round\">\n    <rect x=\"5\" y=\"11\" width=\"14\" height=\"10\" rx=\"2\" />\n    <path d=\"M8 11V7a4 4 0 0 1 8 0v4\" />\n  </svg>\n);\nconst IconStar = ({ size = 13, c = \"rgba(0,0,0,0.4)\" }: { size?: number; c?: string }) => (\n  <svg aria-hidden=\"true\" width={size} height={size} viewBox=\"0 0 24 24\" fill=\"none\" stroke={c} strokeWidth=\"2\" strokeLinejoin=\"round\">\n    <polygon points=\"12 2 15.09 8.26 22 9.27 17 14.14 18.18 21.02 12 17.77 5.82 21.02 7 14.14 2 9.27 8.91 8.26 12 2\" />\n  </svg>\n);\nconst IconPlus = ({ size = 13, c = \"rgba(255,255,255,0.6)\" }: { size?: number; c?: string }) => (\n  <svg aria-hidden=\"true\" width={size} height={size} viewBox=\"0 0 24 24\" fill=\"none\" stroke={c} strokeWidth=\"2.4\" strokeLinecap=\"round\">\n    <line x1=\"12\" y1=\"5\" x2=\"12\" y2=\"19\" />\n    <line x1=\"5\" y1=\"12\" x2=\"19\" y2=\"12\" />\n  </svg>\n);\nconst IconClose = ({ size = 10, c = \"rgba(0,0,0,0.45)\" }: { size?: number; c?: string }) => (\n  <svg aria-hidden=\"true\" width={size} height={size} viewBox=\"0 0 24 24\" fill=\"none\" stroke={c} strokeWidth=\"2.4\" strokeLinecap=\"round\">\n    <line x1=\"5\" y1=\"5\" x2=\"19\" y2=\"19\" />\n    <line x1=\"19\" y1=\"5\" x2=\"5\" y2=\"19\" />\n  </svg>\n);\nconst IconMenuDots = ({ c = \"rgba(0,0,0,0.55)\" }: { c?: string }) => (\n  <svg aria-hidden=\"true\" width={15} height={15} viewBox=\"0 0 24 24\" fill={c}>\n    <circle cx=\"5\" cy=\"12\" r=\"1.8\" />\n    <circle cx=\"12\" cy=\"12\" r=\"1.8\" />\n    <circle cx=\"19\" cy=\"12\" r=\"1.8\" />\n  </svg>\n);\nconst IconShare = ({ size = 16, c = \"#007aff\" }: { size?: number; c?: string }) => (\n  <svg aria-hidden=\"true\" width={size} height={size} viewBox=\"0 0 24 24\" fill=\"none\" stroke={c} strokeWidth=\"2\" strokeLinecap=\"round\" strokeLinejoin=\"round\">\n    <path d=\"M16 6l-4-4-4 4\" />\n    <line x1=\"12\" y1=\"2\" x2=\"12\" y2=\"15\" />\n    <path d=\"M5 12v7a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2v-7\" />\n  </svg>\n);\nconst IconBookOpen = ({ size = 15, c = \"#007aff\" }: { size?: number; c?: string }) => (\n  <svg aria-hidden=\"true\" width={size} height={size} viewBox=\"0 0 24 24\" fill=\"none\" stroke={c} strokeWidth=\"2\" strokeLinecap=\"round\" strokeLinejoin=\"round\">\n    <path d=\"M2 4h6a4 4 0 0 1 4 4v12a3 3 0 0 0-3-3H2z\" />\n    <path d=\"M22 4h-6a4 4 0 0 0-4 4v12a3 3 0 0 1 3-3h7z\" />\n  </svg>\n);\n\nfunction Favicon({ domain, size = 14 }: { domain: string; size?: number }) {\n  const letter = (domain.replace(/^https?:\\/\\//, \"\").replace(/^www\\./, \"\")[0] || \"?\").toUpperCase();\n  let hash = 0;\n  for (let i = 0; i < domain.length; i++) hash = (hash * 31 + domain.charCodeAt(i)) % 360;\n  return (\n    <div aria-hidden=\"true\" className=\"flex shrink-0 items-center justify-center rounded-[3px]\" style={{ width: size, height: size, background: `hsl(${hash}, 55%, 45%)` }}>\n      <span className=\"leading-none font-bold text-white\" style={{ fontSize: size * 0.6 }}>\n        {letter}\n      </span>\n    </div>\n  );\n}\n\nfunction getChromeTheme(dark: boolean) {\n  return dark\n    ? {\n        titleBar: \"#2b2b2e\",\n        activeTab: \"#1c1c1f\",\n        inactiveTabText: \"rgba(255,255,255,0.55)\",\n        activeTabText: \"rgba(255,255,255,0.9)\",\n        urlBarBg: \"#1c1c1f\",\n        urlPillBg: \"#323236\",\n        urlText: \"rgba(255,255,255,0.8)\",\n        iconStrong: \"rgba(255,255,255,0.7)\",\n        iconWeak: \"rgba(255,255,255,0.25)\",\n        border: \"rgba(255,255,255,0.08)\",\n        frameBorder: \"rgba(255,255,255,0.1)\",\n        chromeBg: \"#1c1c1f\",\n        statusBarText: \"#fff\",\n      }\n    : {\n        titleBar: \"#dee1e6\",\n        activeTab: \"#fff\",\n        inactiveTabText: \"rgba(0,0,0,0.55)\",\n        activeTabText: \"rgba(0,0,0,0.85)\",\n        urlBarBg: \"#fff\",\n        urlPillBg: \"#f1f3f4\",\n        urlText: \"rgba(0,0,0,0.7)\",\n        iconStrong: \"rgba(0,0,0,0.5)\",\n        iconWeak: \"rgba(0,0,0,0.25)\",\n        border: \"rgba(0,0,0,0.08)\",\n        frameBorder: \"rgba(0,0,0,0.08)\",\n        chromeBg: \"#fff\",\n        statusBarText: \"#000\",\n      };\n}\n\nfunction BrowserContent(p: BrowserMockupProps) {\n  const videoRef = React.useRef<HTMLVideoElement>(null);\n  const videoWrapRef = React.useRef<HTMLDivElement>(null);\n  const [isVisible, setIsVisible] = React.useState(true);\n  const mediaUrl = p.media || p.videoUrl || \"\";\n  const isVideo = !!p.videoUrl || isVideoUrl(mediaUrl);\n\n  React.useEffect(() => {\n    if (!videoWrapRef.current) return;\n    const observer = new IntersectionObserver(([entry]) => setIsVisible(entry.isIntersecting), { threshold: 0 });\n    observer.observe(videoWrapRef.current);\n    return () => observer.disconnect();\n  }, []);\n\n  React.useEffect(() => {\n    if (!videoRef.current) return;\n    if (p.autoPlay === false || !isVisible) videoRef.current.pause();\n    else videoRef.current.play().catch(() => {});\n  }, [p.autoPlay, isVisible]);\n\n  if (p.children) {\n    return (\n      <div className=\"h-full w-full overflow-auto\" style={{ background: p.contentBg ?? \"#fff\" }}>\n        {p.children}\n      </div>\n    );\n  }\n\n  if (isVideo && (p.videoUrl || mediaUrl)) {\n    return (\n      <div ref={videoWrapRef} role=\"img\" aria-label={p.mediaAlt || p.pageTitle || \"Page preview video\"} className=\"h-full w-full overflow-hidden bg-black\">\n        <video ref={videoRef} src={p.videoUrl || mediaUrl} muted loop playsInline aria-hidden=\"true\" tabIndex={-1} className=\"block h-full w-full\" style={{ objectFit: p.fit ?? \"cover\" }} />\n      </div>\n    );\n  }\n\n  if (mediaUrl) {\n    return (\n      <div className=\"h-full w-full overflow-hidden\" style={{ background: p.contentBg ?? \"#fff\" }}>\n        <img src={mediaUrl} alt={p.mediaAlt || p.pageTitle || \"Page preview\"} className=\"block h-full w-full\" style={{ objectFit: p.fit ?? \"cover\" }} />\n      </div>\n    );\n  }\n\n  return (\n    <div className=\"flex h-full w-full items-center justify-center\" style={{ background: p.contentBg ?? \"#f4f4f5\" }}>\n      <span className=\"text-[13px]\" style={{ color: \"rgba(0,0,0,0.35)\" }}>\n        Add an image, video, or children\n      </span>\n    </div>\n  );\n}\n\nfunction MacBrowser(p: BrowserMockupProps) {\n  const tabCount = Math.max(1, Math.min(5, p.tabCount ?? 1));\n  const [activeTab, setActiveTab] = React.useState(0);\n  const tabTitles = p.tabTitles && p.tabTitles.length ? p.tabTitles.slice(0, tabCount) : Array.from({ length: tabCount }, (_, i) => (i === 0 ? (p.pageTitle ?? \"New Tab\") : \"New Tab\"));\n\n  const url = p.url ?? \"yourproduct.com\";\n  const dark = p.darkMode === true;\n  const t = getChromeTheme(dark);\n\n  return (\n    <div\n      className=\"flex h-full w-full flex-col overflow-hidden font-[-apple-system,BlinkMacSystemFont,'Segoe_UI',sans-serif]\"\n      style={{ borderRadius: p.borderRadius ?? 10, boxShadow: p.showShadow !== false ? \"0 24px 60px -12px rgba(0,0,0,0.35), 0 4px 16px rgba(0,0,0,0.12)\" : \"none\", border: `1px solid ${t.frameBorder}`, background: t.chromeBg }}\n    >\n      <div className=\"flex shrink-0 flex-col\" style={{ background: t.titleBar }}>\n        <div className=\"flex h-9 items-center gap-4 px-3\">\n          <TrafficLights />\n          {tabCount > 1 && (\n            <div role=\"tablist\" className=\"flex h-full flex-1 items-end gap-0.5 overflow-hidden\">\n              {tabTitles.map((title, i) => (\n                <button\n                  key={i}\n                  role=\"tab\"\n                  aria-selected={activeTab === i}\n                  onClick={() => setActiveTab(i)}\n                  className=\"flex h-7 max-w-40 min-w-0 flex-1 items-center gap-1.5 rounded-t-lg border-0 px-2.5\"\n                  style={{ background: activeTab === i ? t.activeTab : \"transparent\" }}\n                >\n                  <Favicon domain={url} size={12} />\n                  <span className=\"flex-1 overflow-hidden text-left text-xs text-ellipsis whitespace-nowrap\" style={{ color: activeTab === i ? t.activeTabText : t.inactiveTabText }}>\n                    {title}\n                  </span>\n                  {activeTab === i && <IconClose size={9} c={t.iconStrong} />}\n                </button>\n              ))}\n              <div className=\"flex h-[26px] w-[26px] items-center justify-center\">\n                <IconPlus c={t.iconWeak} />\n              </div>\n            </div>\n          )}\n        </div>\n\n        <div className=\"flex items-center gap-2.5 px-3 py-1.5\" style={{ background: t.urlBarBg, borderBottom: `1px solid ${t.border}` }}>\n          <div className=\"flex shrink-0 gap-1.5\">\n            <IconBack c={t.iconStrong} />\n            <IconForward c={t.iconWeak} />\n            <IconRefresh c={t.iconStrong} />\n          </div>\n          <div className=\"flex min-w-0 flex-1 items-center justify-center gap-1.5 rounded-full px-3.5 py-1\" style={{ background: t.urlPillBg }}>\n            {p.showLock !== false && <IconLock c={t.iconStrong} />}\n            <span className=\"overflow-hidden text-[12.5px] text-ellipsis whitespace-nowrap\" style={{ color: t.urlText }}>\n              {activeTab === 0 ? cleanDomain(url) : <span style={{ opacity: 0.5 }}>Search or type a URL</span>}\n            </span>\n          </div>\n          <div className=\"shrink-0\">\n            <IconStar c={t.iconWeak} />\n          </div>\n        </div>\n      </div>\n\n      <div className=\"relative min-h-0 flex-1\">\n        {activeTab === 0 ? <BrowserContent {...p} /> : <NewTabPage dark={dark} />}\n      </div>\n    </div>\n  );\n}\n\n/** What a tab other than the first shows: an empty new-tab page, so switching tabs reads as real\n * (before, every tab showed the same page and address). */\nfunction NewTabPage({ dark }: { dark: boolean }) {\n  return (\n    <div className=\"flex h-full w-full items-center justify-center\" style={{ background: dark ? \"#1c1c1f\" : \"#ffffff\" }}>\n      <div className=\"h-9 w-[min(60%,420px)] rounded-full\" style={{ background: dark ? \"rgba(255,255,255,0.08)\" : \"rgba(0,0,0,0.05)\" }} />\n    </div>\n  );\n}\n\nfunction WinBrowser(p: BrowserMockupProps) {\n  const tabCount = Math.max(1, Math.min(5, p.tabCount ?? 1));\n  const [activeTab, setActiveTab] = React.useState(0);\n  const tabTitles = p.tabTitles && p.tabTitles.length ? p.tabTitles.slice(0, tabCount) : Array.from({ length: tabCount }, (_, i) => (i === 0 ? (p.pageTitle ?? \"New Tab\") : \"New Tab\"));\n\n  const url = p.url ?? \"yourproduct.com\";\n  const dark = p.darkMode === true;\n  const t = getChromeTheme(dark);\n\n  return (\n    <div className=\"flex h-full w-full flex-col overflow-hidden\" style={{ borderRadius: p.borderRadius ?? 8, boxShadow: p.showShadow !== false ? \"0 24px 60px -12px rgba(0,0,0,0.35), 0 4px 16px rgba(0,0,0,0.12)\" : \"none\", border: `1px solid ${t.frameBorder}`, background: t.chromeBg }}>\n      <div className=\"flex h-9 shrink-0 items-center\" style={{ background: t.titleBar }}>\n        <div role=\"tablist\" className=\"flex h-full flex-1 items-end gap-px overflow-hidden pl-2\">\n          {tabTitles.map((title, i) => (\n            <button\n              key={i}\n              role=\"tab\"\n              aria-selected={activeTab === i}\n              onClick={() => setActiveTab(i)}\n              className=\"mt-1 flex h-8 max-w-45 min-w-0 flex-1 items-center gap-1.5 rounded-t-lg border-0 px-2.5\"\n              style={{ background: activeTab === i ? t.activeTab : \"transparent\" }}\n            >\n              <Favicon domain={url} size={12} />\n              <span className=\"flex-1 overflow-hidden text-left text-xs text-ellipsis whitespace-nowrap\" style={{ color: activeTab === i ? t.activeTabText : t.inactiveTabText }}>\n                {title}\n              </span>\n              {activeTab === i && <IconClose size={9} c={t.iconStrong} />}\n            </button>\n          ))}\n          <div className=\"mb-0.5 flex h-7 w-7 items-center justify-center\">\n            <IconPlus c={t.iconWeak} />\n          </div>\n        </div>\n        <WinControls c={t.iconStrong} />\n      </div>\n\n      <div className=\"flex shrink-0 items-center gap-2.5 px-3 py-1.5\" style={{ background: t.urlBarBg, borderBottom: `1px solid ${t.border}` }}>\n        <div className=\"flex shrink-0 gap-1.5\">\n          <IconBack c={t.iconStrong} />\n          <IconForward c={t.iconWeak} />\n          <IconRefresh c={t.iconStrong} />\n        </div>\n        <div className=\"flex min-w-0 flex-1 items-center gap-1.5 rounded-full px-3.5 py-1\" style={{ background: t.urlPillBg }}>\n          {p.showLock !== false && <IconLock c={t.iconStrong} />}\n          <span className=\"overflow-hidden text-[12.5px] text-ellipsis whitespace-nowrap\" style={{ color: t.urlText }}>\n            {activeTab === 0 ? cleanDomain(url) : <span style={{ opacity: 0.5 }}>Search or type a URL</span>}\n          </span>\n        </div>\n        <IconMenuDots c={t.iconStrong} />\n      </div>\n\n      <div className=\"relative min-h-0 flex-1\">\n        {activeTab === 0 ? <BrowserContent {...p} /> : <NewTabPage dark={dark} />}\n      </div>\n    </div>\n  );\n}\n\nfunction MobileBrowser(p: BrowserMockupProps) {\n  const url = p.url ?? \"yourproduct.com\";\n  const dark = p.darkMode === true;\n  const t = getChromeTheme(dark);\n  const mobileProps: BrowserMockupProps = p.mobileMedia ? { ...p, media: p.mobileMedia } : p;\n\n  return (\n    <div\n      className=\"flex h-full w-full flex-col overflow-hidden font-[-apple-system,BlinkMacSystemFont,'Segoe_UI',sans-serif]\"\n      style={{ borderRadius: p.borderRadius ?? 28, boxShadow: p.showShadow !== false ? \"0 24px 60px -12px rgba(0,0,0,0.35), 0 4px 16px rgba(0,0,0,0.12)\" : \"none\", border: `1px solid ${t.frameBorder}`, background: t.chromeBg }}\n    >\n      <div aria-hidden=\"true\" className=\"flex shrink-0 items-center justify-between px-4.5 pt-2.5 pb-1\">\n        <span className=\"text-[13px] font-semibold\" style={{ color: t.statusBarText }}>\n          9:41\n        </span>\n        <div className=\"flex items-center gap-1\">\n          <svg width={14} height={10} viewBox=\"0 0 24 16\" fill={t.statusBarText}>\n            <rect x=\"1\" y=\"9\" width=\"3\" height=\"6\" />\n            <rect x=\"6\" y=\"6\" width=\"3\" height=\"9\" />\n            <rect x=\"11\" y=\"3\" width=\"3\" height=\"12\" />\n            <rect x=\"16\" y=\"0\" width=\"3\" height=\"15\" />\n          </svg>\n          <svg width={20} height={11} viewBox=\"0 0 28 16\" fill=\"none\" stroke={t.statusBarText} strokeWidth=\"1.3\">\n            <rect x=\"1\" y=\"1\" width=\"22\" height=\"14\" rx=\"3\" />\n            <rect x=\"24\" y=\"6\" width=\"2\" height=\"4\" fill={t.statusBarText} stroke=\"none\" />\n            <rect x=\"3\" y=\"3\" width=\"18\" height=\"10\" rx=\"1.5\" fill={t.statusBarText} stroke=\"none\" />\n          </svg>\n        </div>\n      </div>\n\n      <div className=\"relative min-h-0 flex-1\">\n        <BrowserContent {...mobileProps} />\n      </div>\n\n      <div className=\"shrink-0 px-2.5 py-2\" style={{ background: dark ? \"rgba(28,28,31,0.95)\" : \"rgba(248,248,248,0.95)\", borderTop: `1px solid ${t.border}` }}>\n        <div className=\"mb-2 flex items-center justify-center gap-1.5 rounded-[10px] px-2.5 py-2\" style={{ background: t.urlPillBg }}>\n          {p.showLock !== false && <IconLock size={12} c={t.iconStrong} />}\n          <span className=\"overflow-hidden text-[13px] text-ellipsis whitespace-nowrap\" style={{ color: t.urlText }}>\n            {cleanDomain(url)}\n          </span>\n          <IconRefresh size={12} c={t.iconStrong} />\n        </div>\n        <div aria-hidden=\"true\" className=\"flex items-center justify-between px-1.5\">\n          <IconBack size={20} c=\"#007aff\" />\n          <IconForward size={20} c=\"rgba(0,122,255,0.3)\" />\n          <IconShare />\n          <IconBookOpen />\n          <svg width={18} height={16} viewBox=\"0 0 24 22\" fill=\"none\" stroke=\"#007aff\" strokeWidth=\"2\" strokeLinecap=\"round\" strokeLinejoin=\"round\">\n            <rect x=\"2\" y=\"4\" width=\"9\" height=\"14\" rx=\"1.5\" />\n            <rect x=\"13\" y=\"4\" width=\"9\" height=\"14\" rx=\"1.5\" />\n          </svg>\n        </div>\n      </div>\n    </div>\n  );\n}\n\nexport function BrowserMockup({ browserStyle = \"mac\", darkMode = false, className, ...props }: BrowserMockupProps) {\n  const frame =\n    browserStyle === \"windows\" ? (\n      <WinBrowser {...props} darkMode={darkMode} />\n    ) : browserStyle === \"mobile\" ? (\n      <MobileBrowser {...props} darkMode={darkMode} />\n    ) : (\n      <MacBrowser {...props} darkMode={darkMode} />\n    );\n\n  return <div className={cn(\"h-full w-full\", className)}>{frame}</div>;\n}\n",
      "type": "registry:component"
    }
  ],
  "type": "registry:component"
}