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

Function bingSearchLink

packages/sanddance-explorer/src/controls/dataItem.tsx:40–54  ·  view source on GitHub ↗
(column: SandDance.types.Column, value: any)

Source from the content-addressed store, hash-verified

38}
39
40function bingSearchLink(column: SandDance.types.Column, value: any) {
41 if (isNumber(value)) return null;
42 if (isBoolean(value)) return null;
43 if (column && column.stats.distinctValueCount === 2) return null;
44 return (
45 <div className='bing-search'>
46 <a
47 href={`https://www.bing.com/search?q=${encodeURIComponent(value)}`}
48 target='_blank'
49 title={strings.bingsearchDescription(value)}
50 aria-label={strings.bingsearchDescription(value)}
51 >{strings.bingsearch}</a>
52 </div>
53 );
54}
55
56interface NameValuePair {
57 columnName: string;

Callers 1

DataItemFunction · 0.70

Calls 2

isNumberFunction · 0.70
isBooleanFunction · 0.70

Tested by

no test coverage detected