import { h } from "@stencil/core";
import { ReferralIframeView, } from "./sqm-referral-iframe-view";
import scenario from "../sqm-referral-iframe/sqm-referral-iframe.feature";
export default {
  title: "Components/Referral Iframe",
  parameters: {
    scenario,
  },
};
const props = {
  data: {
    shareCode: "BOBBYREFER",
  },
  states: {
    content: {
      iframeSrc: "https://example.com",
      iframeHeight: "100%",
      iframeWidth: "100%",
      codeParam: "rsCode",
    },
  },
};
export const ReferralIframe = () => {
  return (h("div", { style: { width: "1000px", height: "1000px" } },
    h(ReferralIframeView, Object.assign({}, props))));
};
export const ReferralIframeError = () => {
  return (h("div", { style: { width: "1000px", height: "1000px" } },
    h("sqm-referral-iframe", null)));
};
