import { useTranslation } from 'react-i18next' import { LostConnectionAlert } from './lost-connection-alert' import { useConnectionContext } from '@/features/ide-react/context/connection-context' import { debugging } from '@/utils/debugging' import { Alert } from 'react-bootstrap' import useScopeValue from '@/shared/hooks/use-scope-value' // TODO SavingNotificationController, SystemMessagesController, out-of-sync modal export function Alerts() { const { t } = useTranslation() const { connectionState, isConnected, isStillReconnecting, tryReconnectNow, secondsUntilReconnect, } = useConnectionContext() const [synctexError] = useScopeValue('sync_tex_error') return (