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}`}>
16 <use xlinkHref={`#icon-${this.props.icon}`}></use>
18 <title>{this.props.icon}</title>
25 interface SpinnerProps {
29 export class Spinner extends Component<SpinnerProps, any> {
30 constructor(props: any, context: any) {
31 super(props, context);
38 classes={`spin ${this.props.large && "spinner-large"}`}