MCPcopy Create free account
hub / github.com/Acode-Foundation/Acode / Icon

Function Icon

src/sidebarApps/sidebarApp.js:163–173  ·  view source on GitHub ↗

* Creates a icon element for a sidebar app. * @param {object} param0 * @param {string} param0.icon * @param {string} param0.id * @returns {HTMLElement}

({ icon, id, title })

Source from the content-addressed store, hash-verified

161 * @returns {HTMLElement}
162 */
163function Icon({ icon, id, title }) {
164 const className = `icon ${icon}`;
165 return (
166 <span
167 data-action="sidebar-app"
168 data-id={id}
169 title={title}
170 className={className}
171 ></span>
172 );
173}
174
175/**
176 * Gets the container or sets it if it's not set.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected