UNPKG

alepha

Version:

Easy-to-use modern TypeScript framework for building many kind of applications.

31 lines (23 loc) 545 B
export interface WebHomeComponentOptions { api?: boolean; } export const webHomeComponentTsx = (options: WebHomeComponentOptions = {}) => { if (options.api) { return `import { GettingStarted } from "alepha/react/intro"; type Props = { appName: string; serverTime: string; } const Home = (props: Props) => { return <GettingStarted welcome={props} />; }; export default Home; `; } return `import { GettingStarted } from "alepha/react/intro"; const Home = () => { return <GettingStarted />; }; export default Home; `; };