import {openCreateNewIntegrationModal} from 'sentry/actionCreators/modal'; import Access from 'sentry/components/acl/access'; import {Button} from 'sentry/components/button'; import {t} from 'sentry/locale'; import {Organization} from 'sentry/types'; import {IntegrationView} from 'sentry/utils/analytics/integrations'; import {PlatformEvents} from 'sentry/utils/analytics/integrations/platformAnalyticsEvents'; import {trackIntegrationAnalytics} from 'sentry/utils/integrationUtil'; import withOrganization from 'sentry/utils/withOrganization'; type CreateIntegrationButtonProps = { analyticsView: IntegrationView['view']; organization: Organization; }; /** * Button to open the modal to create a new public/internal integration (Sentry App) */ function CreateIntegrationButton({ organization, analyticsView, }: CreateIntegrationButtonProps) { const permissionTooltipText = t( 'Manager or Owner permissions are required to create a new integration' ); return ( {({hasAccess}) => ( )} ); } export default withOrganization(CreateIntegrationButton);