import * as components from "./components";
import VScrollLock from "v-scroll-lock";
import { FocusTrap } from "focus-trap-vue";

const ClasscardUI = {
  install(Vue) {
    // components
    for (const componentName in components) {
      const component = components[componentName];

      Vue.component(component.name, component);
    }
    Vue.component("FocusTrap", FocusTrap);
    Vue.use(VScrollLock);
  },
};

export default ClasscardUI;

if (typeof window !== "undefined" && window.Vue) {
  window.Vue.use(ClasscardUI);
}
