aboutsummaryrefslogtreecommitdiff
path: root/.build/svgr-template.js
blob: ed7c593affbb7301b723075139ca3a2a25ffd794 (plain)
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}
    const ${componentName} = (size = 24, color = "currentColor", stroke = 2, ...props) => ${jsx}
    ${exports}
  `
}
module.exports = template;