(route?: string)
| 14 | // `router.pathname` carries the mirror prefix on the mirrored route, so page |
| 15 | // path checks have to drop it before comparing. |
| 16 | export const withoutLayoutVariantPrefix = (route?: string): string => { |
| 17 | if (!route?.startsWith(`${LAYOUT_VARIANT_ROUTE_PREFIX}/`)) { |
| 18 | return route ?? ''; |
| 19 | } |
| 20 | |
| 21 | return route.slice(LAYOUT_VARIANT_ROUTE_PREFIX.length); |
| 22 | }; |
no outgoing calls
no test coverage detected