aboutsummaryrefslogtreecommitdiff
path: root/.build
diff options
context:
space:
mode:
authorcodecalm <codecalm@gmail.com>2020-09-18 10:49:46 +0200
committercodecalm <codecalm@gmail.com>2020-09-18 10:49:46 +0200
commitf01f9e13a4118d22ceaf9f42dbb42f27ec7c0f28 (patch)
tree6982b8d46db2c0fc10b9c6cdb5bdedfbf1afbadf /.build
parenticons optimize (diff)
parenticons react (diff)
downloadtabler-icons-f01f9e13a4118d22ceaf9f42dbb42f27ec7c0f28.tar.xz
Merge branches 'dev-icons-react' and 'master' of https://github.com/tabler/tabler-icons
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;