import Feature from 'sentry/components/acl/feature'; import FeatureDisabled from 'sentry/components/acl/featureDisabled'; import {Hovercard} from 'sentry/components/hovercard'; import {t} from 'sentry/locale'; type Props = { children: (props: {hasFeature: boolean}) => React.ReactNode; }; /** * Provide a component that passes a prop to indicate if the current * organization doesn't have access to discover results. */ function DiscoverFeature({children}: Props) { const noFeatureMessage = t('Requires discover feature.'); const renderDisabled = p => ( } > {p.children(p)} ); return ( {({hasFeature}) => children({hasFeature})} ); } export default DiscoverFeature;