Files
grafana/public/app/features/dashboard/components/ShareModal/SharePublicDashboard/ModalAlerts/EmailSharingPricingAlert.tsx
2024-06-25 17:52:41 -03:00

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>
);
}