index.tsx 750 B

12345678910111213141516171819202122232425
  1. import Feature from 'app/components/acl/feature';
  2. import FeatureDisabled from 'app/components/acl/featureDisabled';
  3. import {PanelAlert} from 'app/components/panels';
  4. import {t} from 'app/locale';
  5. import withOrganization from 'app/utils/withOrganization';
  6. import RelayWrapper from './relayWrapper';
  7. const OrganizationRelay = ({organization, ...props}: RelayWrapper['props']) => (
  8. <Feature
  9. features={['relay']}
  10. organization={organization}
  11. renderDisabled={() => (
  12. <FeatureDisabled
  13. alert={PanelAlert}
  14. features={organization.features}
  15. featureName={t('Relay')}
  16. />
  17. )}
  18. >
  19. <RelayWrapper organization={organization} {...props} />
  20. </Feature>
  21. );
  22. export default withOrganization(OrganizationRelay);