aboutsummaryrefslogtreecommitdiff
path: root/.build
diff options
context:
space:
mode:
authorcodecalm <codecalm@gmail.com>2020-09-07 12:29:44 +0200
committercodecalm <codecalm@gmail.com>2020-09-07 12:29:44 +0200
commitb159087ea60804caf7468ab5ba4861d68af1926d (patch)
tree95f650ceb87fd57589f7575433ddb04d07213f7d /.build
parentRelease 1.19.0 (diff)
downloadtabler-icons-b159087ea60804caf7468ab5ba4861d68af1926d.tar.xz
svgr icons build
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 0000000..ed7c593
--- /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;