import {navigateTo} from 'sentry/actionCreators/navigation';
import {LinkButton} from 'sentry/components/button';
import ButtonBar from 'sentry/components/buttonBar';
import CreateAlertButton from 'sentry/components/createAlertButton';
import FeedbackWidgetButton from 'sentry/components/feedback/widget/feedbackWidgetButton';
import * as Layout from 'sentry/components/layouts/thirds';
import {PageHeadingQuestionTooltip} from 'sentry/components/pageHeadingQuestionTooltip';
import {TabList} from 'sentry/components/tabs';
import {IconSettings} from 'sentry/icons';
import {t} from 'sentry/locale';
import ProjectsStore from 'sentry/stores/projectsStore';
import normalizeUrl from 'sentry/utils/url/normalizeUrl';
import useOrganization from 'sentry/utils/useOrganization';
import usePageFilters from 'sentry/utils/usePageFilters';
import useRouter from 'sentry/utils/useRouter';
type Props = {
activeTab: 'stream' | 'rules';
};
function AlertHeader({activeTab}: Props) {
const router = useRouter();
const organization = useOrganization();
const {selection} = usePageFilters();
/**
* Incidents list is currently at the organization level, but the link needs to
* go down to a specific project scope.
*/
const handleNavigateToSettings = (e: React.MouseEvent) => {
e.preventDefault();
navigateTo(`/settings/${organization.slug}/projects/:projectId/alerts/`, router);
};
const alertRulesLink = (
{t('Alert Rules')}
);
return (
{t('Alerts')}
{t('Create Alert')}
}
aria-label={t('Settings')}
/>
{alertRulesLink}
{t('History')}
);
}
export default AlertHeader;