1 import { Component } from "inferno";
8 export class Icon extends Component<IconProps, any> {
9 constructor(props: any, context: any) {
10 super(props, context);
15 <svg class={`icon ${this.props.classes}`}>
17 <title>{this.props.icon}</title>
19 <use xlinkHref={`#icon-${this.props.icon}`}></use>
25 export class Spinner extends Component<any, any> {
26 constructor(props: any, context: any) {
27 super(props, context);
31 return <Icon icon="spinner" classes="icon-spinner spin" />;