Skip to content

The easy-to-use open source Business Intelligence and Embedded Analytics tool that lets everyone work with data :bar_chart:

515 B
Raw Blame
import { PLUGIN_IS_EE_BUILD, PLUGIN_SUPPORT } from "metabase/plugins";
import { hasPremiumFeature } from "metabase-enterprise/settings";

import {
  GrantAccessModal,
  SupportSettingsSection,
} from "./components/SupportSettingsSection";

export function initializePlugin() {
  if (hasPremiumFeature("support-users") && PLUGIN_IS_EE_BUILD.isEEBuild()) {
    PLUGIN_SUPPORT.isEnabled = true;
    PLUGIN_SUPPORT.SupportSettings = SupportSettingsSection;
    PLUGIN_SUPPORT.GrantAccessModal = GrantAccessModal;
  }
}