mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
17 lines
557 B
TypeScript
17 lines
557 B
TypeScript
import React from 'react';
|
||
|
||
import { selectors as e2eSelectors } from '@grafana/e2e-selectors/src';
|
||
import { Alert } from '@grafana/ui/src';
|
||
|
||
const selectors = e2eSelectors.pages.ShareDashboardModal.PublicDashboard;
|
||
|
||
export const NoUpsertPermissionsAlert = ({ mode }: { mode: 'create' | 'edit' }) => (
|
||
<Alert
|
||
severity="info"
|
||
title={`You don’t have permission to ${mode} a public dashboard`}
|
||
data-testid={selectors.NoUpsertPermissionsWarningAlert}
|
||
>
|
||
Contact your admin to get permission to {mode} create public dashboards
|
||
</Alert>
|
||
);
|