accountNotificationFineTuningController.tsx 857 B

1234567891011121314151617181920212223242526
  1. import type {RouteComponentProps} from 'react-router';
  2. import LoadingIndicator from 'sentry/components/loadingIndicator';
  3. import type {Organization} from 'sentry/types/organization';
  4. import withOrganizations from 'sentry/utils/withOrganizations';
  5. import AccountNotificationFineTuning from './accountNotificationFineTuning';
  6. interface AccountNotificationFineTuningControllerProps
  7. extends RouteComponentProps<{fineTuneType: string}, {}> {
  8. organizations: Organization[];
  9. organizationsLoading?: boolean;
  10. }
  11. export function AccountNotificationFineTuningController({
  12. organizationsLoading,
  13. ...props
  14. }: AccountNotificationFineTuningControllerProps) {
  15. if (organizationsLoading) {
  16. return <LoadingIndicator />;
  17. }
  18. return <AccountNotificationFineTuning {...props} />;
  19. }
  20. export default withOrganizations(AccountNotificationFineTuningController);