// eslint-disable-next-line no-restricted-imports import {withRouter, WithRouterProps} from 'react-router'; import {navigateTo} from 'sentry/actionCreators/navigation'; import Feature from 'sentry/components/acl/feature'; 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 {PERFORMANCE_TOUR_STEPS} from 'sentry/views/performance/onboarding'; const DOCS_URL = 'https://docs.sentry.io/performance-monitoring/getting-started/'; type Props = { organization: Organization; } & WithRouterProps; function MissingPerformanceButtons({organization, router}: Props) { function handleTourAdvance(step: number, duration: number) { trackAnalyticsEvent({ eventKey: 'project_detail.performance_tour.advance', eventName: 'Project Detail: Performance Tour Advance', organization_id: parseInt(organization.id, 10), step, duration, }); } function handleClose(step: number, duration: number) { trackAnalyticsEvent({ eventKey: 'project_detail.performance_tour.close', eventName: 'Project Detail: Performance Tour Close', organization_id: parseInt(organization.id, 10), step, duration, }); } return ( {({showModal}) => ( )} ); } export default withRouter(MissingPerformanceButtons);