import styled from '@emotion/styled'; import {LinkButton} from 'sentry/components/button'; import EmptyMessage from 'sentry/components/emptyMessage'; import ProjectBadge from 'sentry/components/idBadge/projectBadge'; import Panel from 'sentry/components/panels/panel'; import PanelBody from 'sentry/components/panels/panelBody'; import PanelHeader from 'sentry/components/panels/panelHeader'; import PanelItem from 'sentry/components/panels/panelItem'; import {t} from 'sentry/locale'; import useOrganization from 'sentry/utils/useOrganization'; import useProjects from 'sentry/utils/useProjects'; export default function IntegrationAlertRules() { const organization = useOrganization(); const {projects} = useProjects(); return ( {t('Project Configuration')} {projects.length === 0 && ( {t('You have no projects to add Alert Rules to')} )} {projects.map(project => ( {t('Add Alert Rule')} ))} ); } const ProjectItem = styled(PanelItem)` align-items: center; justify-content: space-between; `;