MCPcopy Create free account
hub / github.com/xerrors/Yuxi / Icon

Function Icon

web/src/utils/kb_utils.js:7–8  ·  view source on GitHub ↗
({ size = 20 })

Source from the content-addressed store, hash-verified

5
6const createBrandIcon = (url) => {
7 const Icon = ({ size = 20 }) =>
8 h('img', { src: url, style: { width: size + 'px', height: size + 'px' } })
9 Icon.inheritAttrs = false
10 return Icon
11}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected