import styled from '@emotion/styled'; import classNames from 'classnames'; import DropdownMenu from 'sentry/components/dropdownMenu'; import {IconEllipsis} from 'sentry/icons'; const ContextMenu = ({children}) => ( {({isOpen, getRootProps, getActorProps, getMenuProps}) => { const topLevelCx = classNames('dropdown', { 'anchor-right': true, open: isOpen, }); return ( ({ onClick: (event: React.MouseEvent) => { event.stopPropagation(); event.preventDefault(); }, })} > {isOpen && ( )} ); }} ); const MoreOptions = styled('span')` display: flex; color: ${p => p.theme.textColor}; `; const DropdownTarget = styled('div')` display: flex; cursor: pointer; padding: 0 5px; `; export default ContextMenu;