import ConfigStore from 'sentry/stores/configStore'; import {useLegacyStore} from 'sentry/stores/useLegacyStore'; import {Config} from 'sentry/types'; import getDisplayName from 'sentry/utils/getDisplayName'; type InjectedConfigProps = { config: Config; }; /** * Higher order component that passes the config object to the wrapped * component */ function withConfig
( WrappedComponent: React.ComponentType
) { type Props = Omit
& Partial