
{% if ASPECTS_ENABLE_STUDIO_IN_CONTEXT_METRICS %}

      const { UnitActionsButton, CourseOutlineSidebarWrapper, UnitOutlineSidebarWrapper, SubSectionAnalyticsButton } = await import("@openedx/frontend-plugin-aspects");

{% else %}
      // Currently there is no way to conditionally add plugin slot configuration from tutor-mfe.
      // So, as a workaround, tutor-contrib-aspects simply defines the components added to the plugin as empty components.
      const UnitActionsButton = () => {};
      const CourseOutlineSidebarWrapper = ({component}) => component;
      const UnitOutlineSidebarWrapper = ({component}) => component;
      const SubSectionAnalyticsButton = () => {};
{% endif %}
