mirror of
https://github.com/willchen96/mike.git
synced 2026-06-18 21:15:13 +02:00
7 lines
273 B
TypeScript
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}`;
|
|
}
|