replayOnboardingAlert.tsx 712 B

1234567891011121314151617181920212223
  1. import type {ReactNode} from 'react';
  2. import {Fragment} from 'react';
  3. import withSubscription from 'getsentry/components/withSubscription';
  4. import type {Subscription} from 'getsentry/types';
  5. import {PlanTier} from 'getsentry/types';
  6. type Props = {
  7. children: ReactNode;
  8. subscription: Subscription;
  9. };
  10. function ReplayOnboardingAlert({children, subscription}: Props) {
  11. // in `sentry` we render an info alert to re-enforce the "Select/Create Project" CTA
  12. // this does not apply for AM1 plans so we'll simply hide it
  13. if (subscription.planTier === PlanTier.AM1) {
  14. return null;
  15. }
  16. return <Fragment>{children}</Fragment>;
  17. }
  18. export default withSubscription(ReplayOnboardingAlert, {noLoader: true});