import {Fragment} from 'react'; import { ProfilingContextMenu, ProfilingContextMenuGroup, ProfilingContextMenuHeading, ProfilingContextMenuItem, ProfilingContextMenuLayer, } from 'sentry/components/profiling/ProfilingContextMenu/profilingContextMenu'; import {t} from 'sentry/locale'; import {useContextMenu} from 'sentry/utils/profiling/hooks/useContextMenu'; interface FrameStackContextMenuProps { contextMenu: ReturnType; onZoomIntoFrameClick: (evt: React.MouseEvent) => void; } export function FrameStackContextMenu(props: FrameStackContextMenuProps) { return props.contextMenu.open ? ( props.contextMenu.setOpen(false)} /> {t('Actions')} {t('Show in flamegraph')} ) : null; }