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

Function createBrandIcon

web/src/utils/kb_utils.js:6–11  ·  view source on GitHub ↗
(url)

Source from the content-addressed store, hash-verified

4const ICON_BASE = 'https://registry.npmmirror.com/@lobehub/icons-static-svg/latest/files/icons'
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}
12
13export const brandIcons = {
14 dify: createBrandIcon(`${ICON_BASE}/dify-color.svg`),

Callers 1

kb_utils.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected