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

Function getSearchTimeQueryParam

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

Source from the content-addressed store, hash-verified

43
44// `AllTime` is the default and is omitted from the URL to keep links clean.
45export const getSearchTimeQueryParam = (
46 time: SearchTimeKey,
47): { time?: string } =>
48 time === defaultSearchTime ? {} : { time: searchTimeUrlSlug[time] };
49
50export enum SearchProviderEnum {
51 Posts = 'posts',

Callers 2

SearchContext.tsxFile · 0.90
onSubmitQueryFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected