import { Host, h } from "@stencil/core";
import { watchAccount } from "@wagmi/core";
export class NKIsNotConnected {
  constructor() {
    this.isNotConnected = true;
  }
  componentWillLoad() {
    this.disconnect = watchAccount((account) => {
      this.isNotConnected = !account.isConnected;
    });
  }
  disconnectedCallback() {
    this.disconnect();
  }
  render() {
    return h(Host, null, this.isNotConnected ? h("slot", null) : null);
  }
  static get is() { return "nk-is-not-connected"; }
  static get encapsulation() { return "shadow"; }
  static get states() {
    return {
      "isNotConnected": {}
    };
  }
}
//# sourceMappingURL=nk-is-not-connected.js.map
