'use strict';

require('./packages/core/ui/components/index.js');
var index = require('./packages/core/ui/components/svgIcon/index.js');

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

exports.makeInstaller = makeInstaller;
