MCPcopy Create free account
hub / github.com/dailydotdev/apps / withoutLayoutVariantPrefix

Function withoutLayoutVariantPrefix

packages/shared/src/lib/layoutVariant.ts:21–27  ·  view source on GitHub ↗
(route?: string)

Source from the content-addressed store, hash-verified

19// `router.pathname` carries the mirror prefix on the mirrored route, so page
20// path checks have to drop it before comparing.
21export 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};

Callers 15

activateFunction · 0.90
ExploreSortMenuFunction · 0.90
isRootViewFunction · 0.90
owningRootFunction · 0.90
isMessageThreadFunction · 0.90
hidesClusterFunction · 0.90
recordShellRouteFunction · 0.90
isSettingsPathFunction · 0.90
isFeedEditPathFunction · 0.90
useShellBlockPlanFunction · 0.90
getAsPathnameFunction · 0.90
ExploreSegmentsFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected