2025-12-07 19:32:53 +02:00
|
|
|
import React from 'react';
|
|
|
|
|
|
|
|
|
|
import { OpenChamberLogo } from '@/components/ui/OpenChamberLogo';
|
2025-12-21 22:59:06 +02:00
|
|
|
import { TextLoop } from '@/components/ui/TextLoop';
|
2026-02-01 18:29:34 +02:00
|
|
|
import { useThemeSystem } from '@/contexts/useThemeSystem';
|
2025-12-21 22:59:06 +02:00
|
|
|
|
|
|
|
|
const phrases = [
|
|
|
|
|
"Fix the failing tests",
|
|
|
|
|
"Refactor this to be more readable",
|
|
|
|
|
"Add form validation",
|
|
|
|
|
"Optimize this function",
|
|
|
|
|
"Write tests for this",
|
|
|
|
|
"Explain how this works",
|
|
|
|
|
"Add a new feature",
|
|
|
|
|
"Help me debug this",
|
|
|
|
|
"Review my code",
|
|
|
|
|
"Simplify this logic",
|
|
|
|
|
"Add error handling",
|
|
|
|
|
"Create a new component",
|
|
|
|
|
"Update the documentation",
|
|
|
|
|
"Find the bug here",
|
|
|
|
|
"Improve performance",
|
|
|
|
|
"Add type definitions",
|
|
|
|
|
];
|
2025-12-07 19:32:53 +02:00
|
|
|
|
|
|
|
|
const ChatEmptyState: React.FC = () => {
|
2026-02-01 18:29:34 +02:00
|
|
|
const { currentTheme } = useThemeSystem();
|
2025-12-21 22:59:06 +02:00
|
|
|
|
2026-02-01 18:29:34 +02:00
|
|
|
// Use theme's muted foreground for secondary text
|
|
|
|
|
const textColor = currentTheme?.colors?.surface?.mutedForeground || 'var(--muted-foreground)';
|
2025-12-21 22:59:06 +02:00
|
|
|
|
2025-12-07 19:32:53 +02:00
|
|
|
return (
|
2025-12-21 22:59:06 +02:00
|
|
|
<div className="flex flex-col items-center justify-center min-h-full w-full gap-6">
|
2025-12-07 19:32:53 +02:00
|
|
|
<OpenChamberLogo width={140} height={140} className="opacity-20" isAnimated />
|
2025-12-21 22:59:06 +02:00
|
|
|
<TextLoop
|
|
|
|
|
className="text-body-md"
|
|
|
|
|
interval={4}
|
|
|
|
|
transition={{ duration: 0.5 }}
|
|
|
|
|
>
|
|
|
|
|
{phrases.map((phrase) => (
|
|
|
|
|
<span key={phrase} style={{ color: textColor }}>"{phrase}…"</span>
|
|
|
|
|
))}
|
|
|
|
|
</TextLoop>
|
2025-12-07 19:32:53 +02:00
|
|
|
</div>
|
|
|
|
|
);
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
export default React.memo(ChatEmptyState);
|