import codegen from "babel-plugin-codegen/macro" ; const fn = codegen `
const { IconsManifest } = require("react-icons/lib/cjs");

let codes = "(function (id) { switch (id) {";
IconsManifest.forEach(icon => {
  codes += 'case "' + icon.id + '":\\nreturn import("react-icons/' + icon.id +'/index");\\n'
})
codes += '}})';

module.exports = codes;
// module.exports = "import('react-icons/fa/index')"
` ; export function getIcons ( iconsId ) { return fn ( iconsId ) ; }