import {Alert} from 'sentry/components/alert'; import Link from 'sentry/components/links/link'; import {tct} from 'sentry/locale'; import {useLocation} from 'sentry/utils/useLocation'; import {crashReportTypes} from 'sentry/views/issueDetails/groupEventAttachments/groupEventAttachmentsFilter'; type Props = { groupId: string; orgSlug: string; projectSlug: string; }; const EventAttachmentsCrashReportsNotice = ({orgSlug, projectSlug, groupId}: Props) => { const location = useLocation(); const settingsUrl = `/settings/${orgSlug}/projects/${projectSlug}/security-and-privacy/`; const attachmentsUrl = { pathname: `/organizations/${orgSlug}/issues/${groupId}/attachments/`, query: {...location.query, types: crashReportTypes}, }; return ( {tct( 'Your limit of stored crash reports has been reached for this issue. [attachmentsLink: View crashes] or [settingsLink: configure limit].', { attachmentsLink: , settingsLink: , } )} ); }; export default EventAttachmentsCrashReportsNotice;