import { isDemo } from "@saasquatch/component-boilerplate";
import { withHooks } from "@saasquatch/stencil-hooks";
import { Component, Host, Prop, State, h } from "@stencil/core";
import { useGraphQLClientProvider } from "./useGraphQLProvider";
/**
 * @uiName GraphQL Client Provider
 * @canvasRenderer always-replace
 * @slots [{"name":"","title":"Provider Content"}]
 */
export class GraphQLClientProvider {
  constructor() {
    this.ignored = true;
    withHooks(this);
  }
  disconnectedCallback() { }
  render() {
    false && isDemo()
      ? useGraphQLClientProviderDemo(this)
      : useGraphQLClientProvider(this);
    return (h(Host, { style: { display: "contents" } },
      h("slot", null)));
  }
  static get is() { return "sqm-graphql-client-provider"; }
  static get properties() { return {
    "domain": {
      "type": "string",
      "mutable": false,
      "complexType": {
        "original": "string",
        "resolved": "string",
        "references": {}
      },
      "required": false,
      "optional": false,
      "docs": {
        "tags": [{
            "text": "Domain",
            "name": "uiName"
          }],
        "text": ""
      },
      "attribute": "domain",
      "reflect": false
    }
  }; }
  static get states() { return {
    "ignored": {}
  }; }
}
function useGraphQLClientProviderDemo({ domain }) {
  return domain;
}
