import { ReactElement } from 'react'; import { locationUtil } from '@grafana/data'; import { locationService } from '@grafana/runtime'; import { Button, Modal, Stack } from '@grafana/ui'; type Props = { onDismiss: () => void; path: string; title: string; }; export function ConfirmNavigationModal(props: Props): ReactElement { const { onDismiss, path, title } = props; const openInNewTab = () => { global.open(locationUtil.assureBaseUrl(path), '_blank'); onDismiss(); }; const openInCurrentTab = () => locationService.push(path); return (

Do you want to proceed in the current tab or open a new tab?

); }