import './runStore-777bbf80.js';

function addTab(tab) {
  setTimeout(() => {
    const evt = new CustomEvent("addCorejamMenuTab", {
      detail: { tab },
    });
    document.dispatchEvent(evt);
  }, 500);
}

function corejamRunGlobalScript () {
  addTab({
    header: "Dev",
    content: "corejam-dev-welcome",
    actions: ["fullscreen"],
  });
}

function corejamPluginCanvasGlobalScript () {
  addTab({
    header: "Builder",
    content: "corejam-builder",
  });
}

const globalScripts = () => {
  corejamPluginCanvasGlobalScript();
  corejamRunGlobalScript();
};

export { globalScripts as g };
