import Button from 'sentry/components/button'; import ButtonBar from 'sentry/components/buttonBar'; import FeatureTourModal from 'sentry/components/modals/featureTourModal'; import {t} from 'sentry/locale'; import {Organization} from 'sentry/types'; import {trackAnalyticsEvent} from 'sentry/utils/analytics'; import {RELEASES_TOUR_STEPS} from 'sentry/views/releases/list/releasesPromo'; const DOCS_URL = 'https://docs.sentry.io/product/releases/'; const DOCS_HEALTH_URL = 'https://docs.sentry.io/product/releases/health/'; type Props = { organization: Organization; health?: boolean; projectId?: string; }; function MissingReleasesButtons({organization, health, projectId}: Props) { function handleTourAdvance(step: number, duration: number) { trackAnalyticsEvent({ eventKey: 'project_detail.releases_tour.advance', eventName: 'Project Detail: Releases Tour Advance', organization_id: parseInt(organization.id, 10), project_id: projectId && parseInt(projectId, 10), step, duration, }); } function handleClose(step: number, duration: number) { trackAnalyticsEvent({ eventKey: 'project_detail.releases_tour.close', eventName: 'Project Detail: Releases Tour Close', organization_id: parseInt(organization.id, 10), project_id: projectId && parseInt(projectId, 10), step, duration, }); } return ( {!health && ( {({showModal}) => ( )} )} ); } export default MissingReleasesButtons;