aboutsummaryrefslogtreecommitdiff
path: root/build/template-react.js
diff options
context:
space:
mode:
authorcodecalm <codecalm@gmail.com>2022-07-09 17:03:12 +0200
committercodecalm <codecalm@gmail.com>2022-07-09 17:03:12 +0200
commit036d995c77bd8f4df746bd10efb5a0ac45409231 (patch)
tree733bd5675b14a454cc28735b0afe2cbbd2640a1b /build/template-react.js
parentRelease 1.72.0 (diff)
downloadtabler-icons-dev-react.tar.xz
new build processdev-react
Diffstat (limited to 'build/template-react.js')
-rw-r--r--build/template-react.js12
1 files changed, 12 insertions, 0 deletions
diff --git a/build/template-react.js b/build/template-react.js
new file mode 100644
index 00000000..c8c41384
--- /dev/null
+++ b/build/template-react.js
@@ -0,0 +1,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;