import type {ButtonProps} from 'sentry/components/button'; import {LinkButton} from 'sentry/components/button'; import {IconGithub} from 'sentry/icons'; import {t} from 'sentry/locale'; import type {Organization} from 'sentry/types/organization'; import type {IntegrationView} from 'sentry/utils/analytics/integrations'; import { platformEventLinkMap, PlatformEvents, } from 'sentry/utils/analytics/integrations/platformAnalyticsEvents'; import {trackIntegrationAnalytics} from 'sentry/utils/integrationUtil'; import withOrganization from 'sentry/utils/withOrganization'; type ExampleIntegrationButtonProps = { analyticsView: IntegrationView['view']; organization: Organization; } & ButtonProps; /** * Button to direct users to the Example App repository */ function ExampleIntegrationButton({ organization, analyticsView, ...buttonProps }: ExampleIntegrationButtonProps) { return ( { trackIntegrationAnalytics(PlatformEvents.EXAMPLE_SOURCE, { organization, view: analyticsView, }); }} icon={} {...buttonProps} > {t('View Example App')} ); } export default withOrganization(ExampleIntegrationButton);