()
| 64 | } |
| 65 | |
| 66 | function renderColorPicker() { |
| 67 | if (!displayColorPicker) return undefined; |
| 68 | return ( |
| 69 | <div className="popover"> |
| 70 | <div |
| 71 | className="cover" |
| 72 | onClick={handleCloseColorPicker} |
| 73 | onKeyPress={handleCloseColorPicker} |
| 74 | role="button" |
| 75 | tabIndex={0} |
| 76 | /> |
| 77 | <ColorPicker color={stateValue} onChange={handleColorChange} /> |
| 78 | </div> |
| 79 | ); |
| 80 | } |
| 81 | |
| 82 | const _style: React.CSSProperties = { |
| 83 | display: "flex", |