Files
lucide/packages/lucide-react/scripts/exportTemplate.mjs
T

8 lines
232 B
JavaScript
Raw Normal View History

2022-06-12 22:31:05 +02:00
export default ({ componentName, children }) => `
2023-01-17 08:04:34 +01:00
import createLucideIcon from '../createLucideIcon';
2022-06-12 22:31:05 +02:00
2023-01-17 08:04:34 +01:00
const ${componentName} = createLucideIcon('${componentName}', ${JSON.stringify(children)});
2022-06-12 22:31:05 +02:00
export default ${componentName};
`;