MCPcopy Create free account
hub / github.com/microsoft/SandDance / dataSourcePrefix

Function dataSourcePrefix

packages/sanddance-app/src/dataSourcePicker.tsx:281–291  ·  view source on GitHub ↗
(dt: DataSourceType, displayName: string)

Source from the content-addressed store, hash-verified

279}
280
281function dataSourcePrefix(dt: DataSourceType, displayName: string) {
282 switch (dt) {
283 case 'sample':
284 return `${strings.sampleDataPrefix}: ${displayName}`;
285 case 'local':
286 return strings.localFilePrefix;
287 case 'url':
288 return strings.urlPrefix;
289 }
290 return strings.buttonLoadData;
291}

Callers 1

DataSourceButtonFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected