= React.memo(
{showFilters && (
<>
-
- {getFilterForValueButton({
- defaultFocusedButtonRef,
- field,
- filterManager,
- keyboardEvent: stKeyboardEvent,
- onFilterAdded,
- ownFocus,
- showTooltip: true,
- value: values,
- })}
-
-
- {getFilterOutValueButton({
- field,
- filterManager,
- keyboardEvent: stKeyboardEvent,
- onFilterAdded,
- ownFocus,
- showTooltip: true,
- value: values,
- })}
-
+
+
>
)}
{toggleColumn && (
-
- {getColumnToggleButton({
- field,
- isDisabled: isObjectArray && dataType !== 'geo_point',
- isObjectArray,
- keyboardEvent: stKeyboardEvent,
- ownFocus,
- showTooltip: true,
- toggleColumn,
- value: values,
- })}
-
+
)}
- {showFilters && (draggableId != null || !isEmpty(dataProvider)) && (
-
- {getAddToTimelineButton({
- dataProvider,
- draggableId,
- field,
- keyboardEvent: stKeyboardEvent,
- ownFocus,
- showTooltip: true,
- value: values,
- })}
-
+ {showFilters && draggableIds != null && (
+
)}
{allowTopN({
browserField: getAllFieldsByName(browserFields)[field],
@@ -295,20 +342,18 @@ export const HoverActions: React.FC = React.memo(
value={values}
/>
)}
- {field != null && (
-
- {getCopyButton({
- field,
- isHoverAction: true,
- keyboardEvent: stKeyboardEvent,
- ownFocus,
- showTooltip: true,
- value: values,
- })}
-
+ {showFilters && (
+
)}
-