(route: NextRoute)
| 56 | }; |
| 57 | |
| 58 | const 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 |