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