MCPcopy Create free account
hub / github.com/emwalker/digraph / atHomepage

Function atHomepage

client/src/components/ui/SearchBox/index.tsx:14–14  ·  view source on GitHub ↗
(pathname: string)

Source from the content-addressed store, hash-verified

12import queryFromState from './queryFromState'
13
14const atHomepage = (pathname: string) => pathname === '/'
15
16const pathnameFor = (pathname: string, selectedScope: string) => {
17 if (atHomepage(pathname)) return topicPath(everythingTopicId)

Callers 2

pathnameForFunction · 0.85
SelectScopeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected