mike/frontend/src/app/components/workflows/workflowRoutes.ts

7 lines
273 B
TypeScript

import type { Workflow } from "../shared/types";
export function workflowDetailPath(workflow: Pick<Workflow, "id" | "type">) {
return workflow.type === "assistant"
? `/workflows/assistant/${workflow.id}`
: `/workflows/tabular-review/${workflow.id}`;
}