accountNotificationFineTuningController.tsx 874 B

12345678910111213141516171819202122232425
  1. import LoadingIndicator from 'sentry/components/loadingIndicator';
  2. import type {RouteComponentProps} from 'sentry/types/legacyReactRouter';
  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);