mirror of
https://github.com/lucide-icons/lucide.git
synced 2026-11-13 13:48:26 +00:00
9 lines
239 B
JavaScript
9 lines
239 B
JavaScript
import upperCamelCase from 'upperCamelCase';
|
|
|
|
/**
|
|
* Generates a componentName of a String.
|
|
*
|
|
* @param {string} iconName
|
|
*/
|
|
export const generateComponentName = (iconName) => iconName === "github" ? "GitHub" : upperCamelCase(iconName);
|