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