index.tsx 531 B

12345678910111213141516171819
  1. import Feature from 'sentry/components/acl/feature';
  2. import useOrganization from 'sentry/utils/useOrganization';
  3. import RelayWrapper from './relayWrapper';
  4. function OrganizationRelay(props: Omit<RelayWrapper['props'], 'organization'>) {
  5. const organization = useOrganization();
  6. return (
  7. <Feature
  8. organization={organization}
  9. features={['relay']}
  10. hookName="feature-disabled:relay"
  11. >
  12. <RelayWrapper organization={organization} {...props} />
  13. </Feature>
  14. );
  15. }
  16. export default OrganizationRelay;