mirror of
https://github.com/hanzoai/sentinel.git
synced 2026-09-29 22:34:33 +00:00
36 lines
957 B
TypeScript
36 lines
957 B
TypeScript
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';
|
|
|
|
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;
|