import styled from '@emotion/styled'; import Button from 'sentry/components/button'; import EmptyMessage from 'sentry/components/emptyMessage'; import ProjectBadge from 'sentry/components/idBadge/projectBadge'; import {Panel, PanelBody, PanelHeader, PanelItem} from 'sentry/components/panels'; import {t} from 'sentry/locale'; import {Organization, Project} from 'sentry/types'; import withOrganization from 'sentry/utils/withOrganization'; import withProjects from 'sentry/utils/withProjects'; type Props = { organization: Organization; projects: Project[]; }; const IntegrationAlertRules = ({projects, organization}: Props) => ( {t('Project Configuration')} {projects.length === 0 && ( {t('You have no projects to add Alert Rules to')} )} {projects.map(project => ( ))} ); const ProjectItem = styled(PanelItem)` align-items: center; justify-content: space-between; `; export default withOrganization(withProjects(IntegrationAlertRules));