MCPcopy Index your code
hub / github.com/anomalyco/opencode / copyLogoToClipboard

Function copyLogoToClipboard

packages/console/app/src/component/header.tsx:101–110  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

99 }
100
101 const copyLogoToClipboard = async () => {
102 try {
103 const isDark = isDarkMode()
104 const logoSvgPath = isDark ? copyLogoSvgDark : copyLogoSvgLight
105 const logoSvg = await fetchSvgContent(logoSvgPath)
106 await navigator.clipboard.writeText(logoSvg)
107 } catch (err) {
108 console.error("Failed to copy logo to clipboard:", err)
109 }
110 }
111
112 return (
113 <section data-component="top">

Callers

nothing calls this directly

Calls 2

isDarkModeFunction · 0.85
fetchSvgContentFunction · 0.85

Tested by

no test coverage detected