MCPcopy Index your code
hub / github.com/Linen-dev/linen.dev / usePath

Function usePath

apps/web/hooks/path.tsx:8–17  ·  view source on GitHub ↗
({ href }: Props)

Source from the content-addressed store, hash-verified

6}
7
8export default function usePath({ href }: Props): string {
9 const { isSubDomainRouting, communityName, communityType } = useLinkContext();
10 const path = CustomLinkHelper({
11 communityType,
12 communityName,
13 isSubDomainRouting,
14 path: href,
15 });
16 return path;
17}

Callers 6

InternalLinkFunction · 0.85
DesktopNavBarFunction · 0.85
MobileMenuFunction · 0.85
ChannelFunction · 0.85
ChannelFunction · 0.85
ChannelFunction · 0.85

Calls 2

useLinkContextFunction · 0.90
CustomLinkHelperFunction · 0.90

Tested by

no test coverage detected