12345678910111213141516171819202122232425 |
- import Feature from 'app/components/acl/feature';
- import FeatureDisabled from 'app/components/acl/featureDisabled';
- import {PanelAlert} from 'app/components/panels';
- import {t} from 'app/locale';
- import withOrganization from 'app/utils/withOrganization';
- import RelayWrapper from './relayWrapper';
- const OrganizationRelay = ({organization, ...props}: RelayWrapper['props']) => (
- <Feature
- features={['relay']}
- organization={organization}
- renderDisabled={() => (
- <FeatureDisabled
- alert={PanelAlert}
- features={organization.features}
- featureName={t('Relay')}
- />
- )}
- >
- <RelayWrapper organization={organization} {...props} />
- </Feature>
- );
- export default withOrganization(OrganizationRelay);
|