// retoor <retoor@molodetz.nl>

import { Component } from "./Component.js";

export class AiHelp extends Component {
  static get observedAttributes() {
    return ["text"];
  }

  connectedCallback() {
    this.classList.add("ai-help");
    if (!this.textContent.trim()) {
      this.textContent = this.attr("text", "");
    }
  }
}

if (!customElements.get("ai-help")) {
  customElements.define("ai-help", AiHelp);
}

export default AiHelp;
