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

Function copyWordmarkToClipboard

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

Source from the content-addressed store, hash-verified

88 }
89
90 const copyWordmarkToClipboard = async () => {
91 try {
92 const isDark = isDarkMode()
93 const wordmarkSvgPath = isDark ? copyWordmarkSvgDark : copyWordmarkSvgLight
94 const wordmarkSvg = await fetchSvgContent(wordmarkSvgPath)
95 await navigator.clipboard.writeText(wordmarkSvg)
96 } catch (err) {
97 console.error("Failed to copy wordmark to clipboard:", err)
98 }
99 }
100
101 const copyLogoToClipboard = async () => {
102 try {

Callers

nothing calls this directly

Calls 2

isDarkModeFunction · 0.85
fetchSvgContentFunction · 0.85

Tested by

no test coverage detected