import React from "react"; import { Tooltip } from "@blueprintjs/core"; import { IconWrapper } from "constants/IconConstants"; import { Colors } from "constants/Colors"; import { TableIconWrapper } from "components/designSystems/appsmith/TableStyledWrappers"; interface TableActionIconProps { tooltip: string; selected: boolean; selectMenu: (selected: boolean) => void; className: string; children: React.ReactNode; icon?: React.ReactNode; } const TableActionIcon = (props: TableActionIconProps) => { return ( { props.selectMenu(!props.selected); e.stopPropagation(); }} className={props.className} > {props.children} {props.icon ? props.icon : null} ); }; export default TableActionIcon;