1 import classNames from "classnames";
2 import { Component } from "inferno";
3 import { I18NextService } from "../../services";
12 export class Icon extends Component<IconProps, any> {
13 constructor(props: any, context: any) {
14 super(props, context);
20 className={classNames("icon", this.props.classes, {
21 "icon-inline": this.props.inline,
22 small: this.props.small,
26 xlinkHref={`/static/assets/symbols.svg#icon-${this.props.icon}`}
28 <div className="visually-hidden">
29 <title>{this.props.icon}</title>
36 interface SpinnerProps {
41 export class Spinner extends Component<SpinnerProps, any> {
42 constructor(props: any, context: any) {
43 super(props, context);
50 classes={classNames("spin", this.props.className, {
51 "spinner-large": this.props.large,
58 export class PurgeWarning extends Component<any, any> {
59 constructor(props: any, context: any) {
60 super(props, context);
65 <div className="purge-warning mt-2 alert alert-danger" role="alert">
66 <Icon icon="alert-triangle" classes="icon-inline me-2" />
67 {I18NextService.i18n.t("purge_warning")}