1234567891011121314151617181920212223242526272829303132333435 |
- import {Button} from 'sentry/components/button';
- import ButtonBar from 'sentry/components/buttonBar';
- import CreateAlertButton from 'sentry/components/createAlertButton';
- import {t} from 'sentry/locale';
- import type {Organization} from 'sentry/types/organization';
- const DOCS_URL = 'https://docs.sentry.io/product/alerts-notifications/metric-alerts/';
- type Props = {
- organization: Organization;
- projectSlug: string;
- };
- function MissingAlertsButtons({organization, projectSlug}: Props) {
- return (
- <ButtonBar gap={1}>
- <CreateAlertButton
- organization={organization}
- iconProps={{size: 'xs'}}
- size="sm"
- priority="primary"
- referrer="project_detail"
- projectSlug={projectSlug}
- hideIcon
- >
- {t('Create Alert')}
- </CreateAlertButton>
- <Button size="sm" external href={DOCS_URL}>
- {t('Learn More')}
- </Button>
- </ButtonBar>
- );
- }
- export default MissingAlertsButtons;
|