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

Function getSourceSuggestionUrl

packages/shared/src/graphql/search.ts:482–485  ·  view source on GitHub ↗
(suggestion: SearchSuggestion)

Source from the content-addressed store, hash-verified

480};
481
482export const getSourceSuggestionUrl = (suggestion: SearchSuggestion): string =>
483 `${webappUrl}${
484 suggestion.sourceType === SourceType.Squad ? 'squads' : 'sources'
485 }/${suggestion.subtitle?.toLowerCase() || suggestion.id}`;
486
487export type SearchSuggestionResult = {
488 hits: SearchSuggestion[];

Callers 3

SearchResultsSourceListFunction · 0.90
onSuggestionClickFunction · 0.90
buildSourceCommandFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected