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