import {Component} from 'react'; import SentryTypes from 'sentry/sentryTypes'; import {Project} from 'sentry/types'; import getDisplayName from 'sentry/utils/getDisplayName'; type InjectedProjectProps = { project?: Project; }; /** * Currently wraps component with project from context */ const withProject =
( WrappedComponent: React.ComponentType
) => class extends Component< Omit
& Partial