aboutsummaryrefslogtreecommitdiff
path: root/.build
diff options
context:
space:
mode:
Diffstat (limited to '.build')
-rw-r--r--.build/svgr-template.js12
1 files changed, 12 insertions, 0 deletions
diff --git a/.build/svgr-template.js b/.build/svgr-template.js
new file mode 100644
index 00000000..ed7c593a
--- /dev/null
+++ b/.build/svgr-template.js
@@ -0,0 +1,12 @@
+function template(
+ { template },
+ opts,
+ { imports, componentName, props, jsx, exports },
+) {
+ return template.ast`
+ ${imports}
+ const ${componentName} = (size = 24, color = "currentColor", stroke = 2, ...props) => ${jsx}
+ ${exports}
+ `
+}
+module.exports = template;