21 lines
611 B
TypeScript
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 > Metrics</i>
|
|
</div>
|
|
<LinkButton fill={'solid'} variant={'secondary'} href={HOME_ROUTE}>
|
|
View bookmarks
|
|
</LinkButton>
|
|
</Stack>
|
|
);
|
|
return notification;
|
|
}
|