mirror of
https://github.com/actualbudget/actual.git
synced 2026-03-22 00:13:45 -05:00
19 lines
283 B
TypeScript
19 lines
283 B
TypeScript
import type { Config } from '@svgr/core';
|
|
|
|
const tmpl: Config['template'] = (
|
|
{ imports, interfaces, componentName, props, jsx },
|
|
{ tpl },
|
|
) => {
|
|
return tpl`
|
|
${imports};
|
|
|
|
${interfaces};
|
|
|
|
export const ${componentName} = (${props}) => (
|
|
${jsx}
|
|
);
|
|
`;
|
|
};
|
|
|
|
module.exports = tmpl;
|