2025-04-01 10:38:02 +09:00

21 lines
611 B
TypeScript

import { LinkButton, Stack } from '@grafana/ui';
import { createSuccessNotification } from '../../../core/copy/appNotification';
import { HOME_ROUTE } from '../shared';
export function createBookmarkSavedNotification() {
const notification = createSuccessNotification('Bookmark created');
notification.component = (
<Stack gap={2} direction={'row'}>
<div>
You can view bookmarks under <i>Explore &gt; Metrics</i>
</div>
<LinkButton fill={'solid'} variant={'secondary'} href={HOME_ROUTE}>
View bookmarks
</LinkButton>
</Stack>
);
return notification;
}