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

14 lines
354 B
JavaScript
Raw Normal View History

2021-04-11 15:48:50 +04:30
export default ({ componentName, children }) => `
import { LucideIconData } from './types';
2021-04-11 19:04:24 +02:00
import defaultAttributes from './constants/default-attributes';
2021-04-11 15:48:50 +04:30
/* eslint-disable no-shadow-restricted-names */
const ${componentName}: LucideIconData = [
'svg',
defaultAttributes,
${JSON.stringify(children)}
2021-04-11 15:48:50 +04:30
];
2021-04-11 19:04:24 +02:00
export default ${componentName};
2021-04-11 15:48:50 +04:30
`;