deadClickList.tsx 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  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 DeadClickList() {
  9. const organization = useOrganization();
  10. const hasDeadCicks = organization.features.includes(
  11. 'session-replay-rage-dead-selectors'
  12. );
  13. return hasDeadCicks ? (
  14. <SentryDocumentTitle
  15. title={t('Top Selectors with Dead Clicks')}
  16. orgSlug={organization.slug}
  17. >
  18. <Layout.Header>
  19. <Layout.HeaderContent>
  20. <Layout.Title>
  21. {t('Top Selectors with Dead Clicks')}
  22. <PageHeadingQuestionTooltip
  23. title={t('See the top selectors your users have dead 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. }