import {Fragment} from 'react'; import Alert from 'sentry/components/alert'; import {Button, LinkButton} from 'sentry/components/button'; import ButtonBar from 'sentry/components/buttonBar'; import EmptyStateWarning from 'sentry/components/emptyStateWarning'; import GroupList from 'sentry/components/issues/groupList'; import Panel from 'sentry/components/panels/panel'; import PanelBody from 'sentry/components/panels/panelBody'; import {IconClose} from 'sentry/icons'; import {t} from 'sentry/locale'; import {getUtcDateString} from 'sentry/utils/dates'; import useDismissAlert from 'sentry/utils/useDismissAlert'; import usePageFilters from 'sentry/utils/usePageFilters'; import {Monitor, MonitorEnvironment} from '../types'; type Props = { monitor: Monitor; monitorEnvs: MonitorEnvironment[]; orgSlug: string; }; function MonitorIssuesEmptyMessage() { return (

{t('No issues relating to this cron monitor have been found.')}

); } function MonitorIssues({orgSlug, monitor, monitorEnvs}: Props) { const {dismiss, isDismissed} = useDismissAlert({ key: `${orgSlug}:thresholds-setting-alert-dismissed`, }); const {selection} = usePageFilters(); const {start, end, period} = selection.datetime; const timeProps = start && end ? { start: getUtcDateString(start), end: getUtcDateString(end), } : { statsPeriod: period, }; // TODO(epurkhiser): We probably want to filter on envrionemnt return ( {!isDismissed && ( {t('Monitor Settings')}