import { Component, h, Prop } from '@stencil/core';
import { __ } from '@wordpress/i18n';
export class ScDashboardModule {
  render() {
    return (h("div", { class: "dashboard-module" },
      !!this.error && (h("sc-alert", { open: !!this.error, type: "danger" },
        h("span", { slot: "title" }, __('Error', 'surecart')),
        this.error)),
      h("div", { class: "heading" },
        h("div", { class: "heading__text" },
          h("div", { class: "heading__title", part: "heading-title" },
            h("slot", { name: "heading" }, this.heading)),
          h("div", { class: "heading__description", part: "heading-description" },
            h("slot", { name: "description" }))),
        h("slot", { name: "end" })),
      h("slot", null)));
  }
  static get is() { return "sc-dashboard-module"; }
  static get encapsulation() { return "shadow"; }
  static get originalStyleUrls() { return {
    "$": ["sc-dashboard-module.scss"]
  }; }
  static get styleUrls() { return {
    "$": ["sc-dashboard-module.css"]
  }; }
  static get properties() { return {
    "heading": {
      "type": "string",
      "mutable": false,
      "complexType": {
        "original": "string",
        "resolved": "string",
        "references": {}
      },
      "required": false,
      "optional": false,
      "docs": {
        "tags": [],
        "text": ""
      },
      "attribute": "heading",
      "reflect": false
    },
    "error": {
      "type": "string",
      "mutable": false,
      "complexType": {
        "original": "string",
        "resolved": "string",
        "references": {}
      },
      "required": false,
      "optional": false,
      "docs": {
        "tags": [],
        "text": ""
      },
      "attribute": "error",
      "reflect": false
    }
  }; }
}
