import { index, layout, route } from "@react-router/dev/routes"; import type { RouteConfig } from "@react-router/dev/routes"; export default [ // Standalone chat page — no auth, mobile-first, talks to the zopu server. route("chat", "./routes/standalone/chat/page.tsx"), layout("./routes/auth/layout.tsx", [ route("login", "./routes/auth/login/page.tsx"), route("signup", "./routes/auth/signup/page.tsx"), ]), layout("./routes/app/layout.tsx", [ layout("./routes/app/mobile/layout.tsx", [ index("./routes/app/mobile/page.tsx"), route("chat", "./routes/app/mobile/chat/page.tsx"), route("chat/:workUnitId", "./routes/app/mobile/chat/work/page.tsx"), route("work", "./routes/app/mobile/work-list/page.tsx"), route("work/:workUnitId", "./routes/app/mobile/work/page.tsx"), ]), route("dashboard", "./routes/app/dashboard/page.tsx"), route("todos", "./routes/app/todos/page.tsx"), ]), ] satisfies RouteConfig;