mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
21 lines
953 B
TypeScript
21 lines
953 B
TypeScript
import { Alert, Button, Stack } from '@grafana/ui';
|
|
import { Trans } from 'app/core/internationalization';
|
|
|
|
const EMAIL_SHARING_URL = 'https://grafana.com/docs/grafana/latest/dashboards/dashboard-public/#email-sharing';
|
|
|
|
export function EmailSharingPricingAlert() {
|
|
return (
|
|
<Alert title="" severity="info" bottomSpacing={0}>
|
|
<Stack justifyContent="space-between" gap={2} alignItems="center">
|
|
<Trans i18nKey="public-dashboard.email-sharing.alert-text">
|
|
Sharing dashboards by email is billed per user for the duration of the 30-day token, regardless of how many
|
|
dashboards are shared. Billing stops after 30 days unless you renew the token.
|
|
</Trans>
|
|
<Button variant="secondary" onClick={() => window.open(EMAIL_SHARING_URL, '_blank')} type="button">
|
|
<Trans i18nKey="public-dashboard.email-sharing.learn-more-button">Learn more</Trans>
|
|
</Button>
|
|
</Stack>
|
|
</Alert>
|
|
);
|
|
}
|