CoolFace
Apppublic

AK-21/Graphite-Industrial-Intelligence

sourceHugging Faceupdated 3mo agoView on Hugging Face
0likes
createLucideIcon.mjs33 linesDownload Raw Back to esm
1/**2 * @license lucide-react v1.22.0 - ISC3 *4 * This source code is licensed under the ISC license.5 * See the LICENSE file in the root directory of this source tree.6 */7 8import { forwardRef, createElement } from 'react';9import { mergeClasses } from './shared/src/utils/mergeClasses.mjs';10import { toKebabCase } from './shared/src/utils/toKebabCase.mjs';11import { toPascalCase } from './shared/src/utils/toPascalCase.mjs';12import Icon from './Icon.mjs';13 14const createLucideIcon = (iconName, iconNode) => {15  const Component = forwardRef(16    ({ className, ...props }, ref) => createElement(Icon, {17      ref,18      iconNode,19      className: mergeClasses(20        `lucide-${toKebabCase(toPascalCase(iconName))}`,21        `lucide-${iconName}`,22        className23      ),24      ...props25    })26  );27  Component.displayName = toPascalCase(iconName);28  return Component;29};30 31export { createLucideIcon as default };32//# sourceMappingURL=createLucideIcon.mjs.map33