MCPcopy Index your code
hub / github.com/microsoft/SandDance / ColorMap

Function ColorMap

packages/sanddance-explorer/src/colorMap.tsx:37–65  ·  view source on GitHub ↗
(props: Props)

Source from the content-addressed store, hash-verified

35}
36
37function ColorMap(props: Props) {
38 const menuProps: FluentUITypes.IContextualMenuProps = {
39 items: [
40 {
41 key: 'new',
42 text: strings.buttonColorSchemeRemap,
43 disabled: !props.canRemap || props.isRemap,
44 onClick: () => props.colorMapHandler(true),
45 },
46 {
47 key: 'old',
48 text: strings.buttonColorSchemeKeep,
49 disabled: !props.canRemap || !props.isRemap,
50 onClick: () => props.colorMapHandler(false),
51 },
52 ],
53 };
54 return (
55 <div>
56 <IconButton
57 themePalette={props.themePalette}
58 title={strings.buttonColorSchemeMap}
59 onClick={null}
60 iconName={props.canRemap ? 'FiltersSolid' : 'Filters'}
61 menuProps={menuProps}
62 />
63 </div>
64 );
65}

Callers 1

applyColorButtonsFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected