index.tsx 1.0 KB

12345678910111213141516171819202122232425
  1. import Feature from 'sentry/components/acl/feature';
  2. import useOrganization from 'sentry/utils/useOrganization';
  3. import AppStartup from 'sentry/views/performance/mobile/appStarts/screens';
  4. import {StartTypeSelector} from 'sentry/views/performance/mobile/appStarts/screenSummary/startTypeSelector';
  5. import ScreensTemplate from 'sentry/views/performance/mobile/components/screensTemplate';
  6. import {ROUTE_NAMES} from 'sentry/views/starfish/utils/routeNames';
  7. export default function InitializationModule() {
  8. const organization = useOrganization();
  9. return (
  10. <Feature features="spans-first-ui" organization={organization}>
  11. <ScreensTemplate
  12. additionalSelectors={<StartTypeSelector />}
  13. compatibilityProps={{
  14. compatibleSDKNames: ['sentry.cocoa', 'sentry.java.android'],
  15. docsUrl:
  16. 'https://docs.sentry.io/product/performance/mobile-vitals/app-starts/#minimum-sdk-requirements',
  17. }}
  18. content={<AppStartup chartHeight={200} />}
  19. title={ROUTE_NAMES['app-startup']}
  20. />
  21. </Feature>
  22. );
  23. }