MCPcopy Create free account
hub / github.com/anomalyco/opencode / viewBox

Function viewBox

packages/ui/src/components/icon.tsx:112–114  ·  view source on GitHub ↗
(name: keyof typeof icons)

Source from the content-addressed store, hash-verified

110let spriteInserted = false
111
112function viewBox(name: keyof typeof icons) {
113 return name === "magnifying-glass" || name === "arrow-undo-down" ? "0 0 16 16" : "0 0 20 20"
114}
115
116function ensureSprite() {
117 if (spriteInserted) return

Callers 2

ensureSpriteFunction · 0.85
IconFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected