import type { AppInfo, LibInfo } from "akanjs"; export default function getContent(scanInfo: AppInfo | LibInfo | null, dict: { appName: string }) { return { filename: "_index.tsx", content: `import { fetch, Task, usePage } from "@apps/${dict.appName}/client"; import { Link } from "akanjs/ui"; // ===== page/task/_index.tsx ===== // Convention: Akan.js file-based routing — _index.tsx is the index page for /task. // Server-side data loading via loader() at the page level; passes init/view props to Zone components. // Uses usePage().l() for i18n — the framework convention for dictionary-based translations. export default async function Page() { const { l } = usePage(); const { taskInitInPublic } = await fetch.initTaskInPublic(); return (

{l("task.modelName")}

{l("task.modelDesc")}

{l("task.taskNew")}
); }`, }; }