Skip to content

Invoke is a leading creative engine that uses image and video generation models to empower professionals, artists, and enthusiasts to generate and create visual media using the latest AI-driven technologies. The solution offers an industry-leading application interface, and serves as the foundation for multiple commercial products.

719 B
Raw Blame
import { Button } from '@platform/ui/Button';
import { useCallback } from 'react';
import { useTranslation } from 'react-i18next';

import { AuthScreen } from './AuthScreen';

/** Keep account-owned providers unmounted until auth mode and principal resolve successfully. */
export const AuthUnavailableScreen = ({ onRetry }: { onRetry: () => Promise<void> | void }) => {
  const { t } = useTranslation();
  const handleRetry = useCallback(() => {
    void onRetry();
  }, [onRetry]);

  return (
    <AuthScreen subtitle={t('widgets.serverStatus.disconnected')} title={t('common.somethingWentWrong')}>
      <Button size="lg" onClick={handleRetry}>
        {t('common.retry')}
      </Button>
    </AuthScreen>
  );
};