import Button, {ButtonProps} from 'sentry/components/button'; import DiscoverFeature from 'sentry/components/discover/discoverFeature'; import {t} from 'sentry/locale'; type DiscoverButtonProps = Omit; /** * Provide a button that turns itself off if the current organization * doesn't have access to discover results. */ function DiscoverButton({children, ...buttonProps}: DiscoverButtonProps) { return ( {({hasFeature}) => ( )} ); } export default DiscoverButton;