10 lines
181 B
TypeScript
10 lines
181 B
TypeScript
export default function ({name, path}: {name: string; path: string}) {
|
|
return `
|
|
export function ${name}() {
|
|
return (
|
|
<div>${name} component at \`${path}\`</div>
|
|
);
|
|
}
|
|
`;
|
|
}
|