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

Function getSearchTimeQueryParam

packages/shared/src/graphql/search.ts:53–56  ·  view source on GitHub ↗
(
  time: SearchTimeKey,
)

Source from the content-addressed store, hash-verified

51
52// `AllTime` is the default and is omitted from the URL to keep links clean.
53export const getSearchTimeQueryParam = (
54 time: SearchTimeKey,
55): { time?: string } =>
56 time === defaultSearchTime ? {} : { time: searchTimeUrlSlug[time] };
57
58const searchPostTypeUrlSlug: Partial<Record<PostType, string>> = {
59 [PostType.Article]: 'article',

Callers 2

SearchContext.tsxFile · 0.90
onSubmitQueryFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected