import { Component , Show } from 'solid-js' ; interface Props { name : string ; } const Icon = ( props ) => ( < Show when = { props . name } > < span className = "icon" > < svg > < use href = { `#icon-${ props . name }` } /> < /svg> < /span> < /Show>); export default Icon ;