MCPcopy Create free account
hub / github.com/UsefulSoftwareCo/executor / routeToHash

Function routeToHash

packages/onboarding-demo/src/next-flow.tsx:58–64  ·  view source on GitHub ↗
(route: NextRoute)

Source from the content-addressed store, hash-verified

56};
57
58const routeToHash = (route: NextRoute): string => {
59 if (route.kind === "browse") return "#reworked";
60 if (route.kind === "installed") return "#reworked/installed";
61 if (route.kind === "custom") return "#reworked/custom";
62 if (route.kind === "auth") return `#reworked/${route.domain}/auth`;
63 return `#reworked/${route.domain}`;
64};
65
66// ---------------------------------------------------------------------------
67

Callers 1

NextFlowFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected