ruch
Version:
Revolutionary React TypeScript CLI with hexagonal architecture & AI-powered development assistance. Create maintainable, scalable applications with domain-driven design and integrated AI tooling.
29 lines (27 loc) • 947 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.getUiTemplate = exports.getUiIndexTemplate = void 0;
const getUiIndexTemplate = (domainName) => {
const capitalizedName = domainName.charAt(0).toUpperCase() + domainName.slice(1);
return `// UI exports for the ${domainName} domain
export { ${capitalizedName}View } from './${capitalizedName}View';
`;
};
exports.getUiIndexTemplate = getUiIndexTemplate;
const getUiTemplate = (domainName) => {
const capitalizedName = domainName.charAt(0).toUpperCase() + domainName.slice(1);
return `import React from 'react';
interface ${capitalizedName}ViewProps {
// Add your props here
}
export function ${capitalizedName}View(_props: ${capitalizedName}ViewProps) {
return (
<div>
<h1>${capitalizedName}</h1>
{/* Add your UI components here */}
</div>
);
}`;
};
exports.getUiTemplate = getUiTemplate;
//# sourceMappingURL=ui.js.map