quickTraceContext.tsx 405 B

1234567891011
  1. import {createContext} from 'react';
  2. import {QuickTraceQueryChildrenProps} from 'sentry/utils/performance/quickTrace/types';
  3. export type QuickTraceContextChildrenProps = QuickTraceQueryChildrenProps | undefined;
  4. const QuickTraceContext = createContext<QuickTraceContextChildrenProps>(undefined);
  5. export const Provider = QuickTraceContext.Provider;
  6. export const Consumer = QuickTraceContext.Consumer;