1 2 3 4 5 6 7 8 9 10 11 12
function template( { template }, opts, { imports, componentName, props, jsx, exports }, ) { return template.ast` ${imports} function ${componentName}({ size = 24, color = "currentColor", stroke = 2, ...props }) { return (${jsx}); } ${exports} `; } module.exports = template;