Files
tesseract/web/src/templates/routes.tsx
2024-12-03 11:35:47 +00:00

19 lines
572 B
TypeScript

import { rootRoute } from "@/root-route.tsx";
import { TemplatesDashboard } from "@/templates/dashboard.tsx";
import { TemplateEditor } from "@/templates/template-editor.tsx";
import { createRoute } from "@tanstack/react-router";
const templatesDashboardRoute = createRoute({
getParentRoute: () => rootRoute,
path: "/templates",
component: TemplatesDashboard,
});
const templateEditorRoute = createRoute({
getParentRoute: () => rootRoute,
path: "/templates/$templateName/$",
component: TemplateEditor,
});
export { templatesDashboardRoute, templateEditorRoute };