import * as React from 'react'; import * as qs from 'query-string'; import {platformToIntegrationMap} from 'sentry/utils/integrationUtil'; import DocumentationSetup from './documentationSetup'; import IntegrationSetup from './integrationSetup'; import OtherSetup from './otherSetup'; type Props = React.ComponentProps & React.ComponentProps & Omit, 'integrationSlug'>; const SdkConfiguration = (props: Props) => { const parsed = qs.parse(window.location.search); const {platform} = props; const integrationSlug = platform && platformToIntegrationMap[platform]; // check for manual override query param if (integrationSlug && parsed.manual !== '1') { return ; } if (platform === 'other') { return ; } return ; }; export default SdkConfiguration;