rageClickList.tsx 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. import Alert from 'sentry/components/alert';
  2. import * as Layout from 'sentry/components/layouts/thirds';
  3. import PageFiltersContainer from 'sentry/components/organizations/pageFilters/container';
  4. import {PageHeadingQuestionTooltip} from 'sentry/components/pageHeadingQuestionTooltip';
  5. import SentryDocumentTitle from 'sentry/components/sentryDocumentTitle';
  6. import {t} from 'sentry/locale';
  7. import useOrganization from 'sentry/utils/useOrganization';
  8. export default function RageClickList() {
  9. const organization = useOrganization();
  10. const hasRageCicks = organization.features.includes(
  11. 'session-replay-rage-dead-selectors'
  12. );
  13. return hasRageCicks ? (
  14. <SentryDocumentTitle
  15. title={t('Top Selectors with Rage Clicks')}
  16. orgSlug={organization.slug}
  17. >
  18. <Layout.Header>
  19. <Layout.HeaderContent>
  20. <Layout.Title>
  21. {t('Top Selectors with Rage Clicks')}
  22. <PageHeadingQuestionTooltip
  23. title={t('See the top selectors your users have rage clicked on.')}
  24. docsUrl="https://docs.sentry.io/product/session-replay/replay-page-and-filters/"
  25. />
  26. </Layout.Title>
  27. </Layout.HeaderContent>
  28. </Layout.Header>
  29. <PageFiltersContainer>
  30. <Layout.Body>
  31. <Layout.Main fullWidth>TODO</Layout.Main>
  32. </Layout.Body>
  33. </PageFiltersContainer>
  34. </SentryDocumentTitle>
  35. ) : (
  36. <Layout.Page withPadding>
  37. <Alert type="warning">{t("You don't have access to this feature")}</Alert>
  38. </Layout.Page>
  39. );
  40. }