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

Function getSearchTimeFromUrl

packages/shared/src/graphql/search.ts:47–50  ·  view source on GitHub ↗
(
  value?: string,
)

Source from the content-addressed store, hash-verified

45) as Record<string, SearchTimeKey>;
46
47export const getSearchTimeFromUrl = (
48 value?: string,
49): SearchTimeKey | undefined =>
50 value ? urlSlugToSearchTime[value] : undefined;
51
52// `AllTime` is the default and is omitted from the URL to keep links clean.
53export const getSearchTimeQueryParam = (

Callers 1

SearchContext.tsxFile · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected