useHasTraceNewUi.tsx 304 B

1234567891011
  1. import {useMemo} from 'react';
  2. import useOrganization from 'sentry/utils/useOrganization';
  3. export function useHasTraceNewUi(): boolean {
  4. const organization = useOrganization();
  5. return useMemo(() => {
  6. return organization.features.includes('trace-view-new-ui');
  7. }, [organization.features]);
  8. }