* Creates a icon element for a sidebar app. * @param {object} param0 * @param {string} param0.icon * @param {string} param0.id * @returns {HTMLElement}
({ icon, id, title })
| 161 | * @returns {HTMLElement} |
| 162 | */ |
| 163 | function 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. |
nothing calls this directly
no outgoing calls
no test coverage detected