import React from 'react'; import { OpenChamberLogo } from '@/components/ui/OpenChamberLogo'; import { useThemeSystem } from '@/contexts/useThemeSystem'; import { useGlobalSyncStore } from '@/sync/global-sync-store'; import { useI18n } from '@/lib/i18n'; const ChatEmptyState: React.FC = () => { const { t } = useI18n(); const { currentTheme } = useThemeSystem(); const initError = useGlobalSyncStore((s) => s.error); const textColor = currentTheme?.colors?.surface?.mutedForeground || 'var(--muted-foreground)'; return (
{initError ? (
{t('chat.emptyState.opencodeUnreachable')} {initError.message}
) : ( {t('chat.emptyState.startNewChat')} )}
); }; export default React.memo(ChatEmptyState);