Modularized Imports

Is there a way to read variable {{member}} in the following image? I want to pass modified {{member}} into there.
3 Replies
Chadbek
Chadbek2y ago
The issue is that {{member}} is, for example, "ArrowLeft" but react-feather doesnt export it as react-feather/dist/icons/ArrowLeft, it exports it as react-feather/dist/icons/arrow-left. So i want to slugify it first
.hatulapro
.hatulapro2y ago
You can't customize it too much, but {{ kebabCase member }} should do the trick
Chadbek
Chadbek2y ago
thanks, it did help