import { h } from "@stencil/core";
export class SwBadgeError {
  render() {
    if (this.typeError === undefined) {
      return (h("div", { class: "badge-container" }, "Attenzione! Compila tutti i campi obbligatori."));
    }
    if (this.typeError === 500) {
      return h("div", { class: "badge-container" }, "Attenzione! Errore server.");
    }
  }
  static get is() { return "sw-badge-error"; }
  static get encapsulation() { return "shadow"; }
  static get originalStyleUrls() {
    return {
      "$": ["sw-badge-error.css"]
    };
  }
  static get styleUrls() {
    return {
      "$": ["sw-badge-error.css"]
    };
  }
}
