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

Function getNewPicksPath

packages/shared/src/graphql/picks.ts:233–243  ·  view source on GitHub ↗
(params: NewPicksParams = {})

Source from the content-addressed store, hash-verified

231}
232
233export const getNewPicksPath = (params: NewPicksParams = {}): string => {
234 const query = new URLSearchParams();
235 Object.entries(params).forEach(([key, value]) => {
236 if (value) {
237 query.set(key, value);
238 }
239 });
240 const queryString = query.toString();
241
242 return `/picks/new${queryString ? `?${queryString}` : ''}`;
243};
244
245/** Public read, works logged out. Null means the id is unknown. */
246export const picksQueryOptions = (id: string) => ({

Callers 3

WeeklyPicksHeroCardFunction · 0.90
onMakePicksFunction · 0.90
onAddToPicksFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected