import './packages/core/ui/components/index.mjs';
import { elSvg } from './packages/core/ui/components/svgIcon/index.mjs';

const makeInstaller = (components = []) => {
  const install = (app) => {
    components.forEach(
      (component) => {
        if (!app._context.components[component.name]) {
          app.component(component.name, component);
        }
      }
    );
    if (app)
      elSvg(app);
  };
  return {
    install
  };
};

export { makeInstaller };
