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