/** * Chat Toolbar * Session selector, new session, refresh, and thinking toggle. * Rendered in the Header when on the Chat page. */ import { RefreshCw, Brain } from 'lucide-react'; import { Button } from '@/components/ui/button'; import { Tooltip, TooltipContent, TooltipTrigger } from '@/components/ui/tooltip'; import { useChatStore } from '@/stores/chat'; import { cn } from '@/lib/utils'; import { useTranslation } from 'react-i18next'; export function ChatToolbar() { const refresh = useChatStore((s) => s.refresh); const loading = useChatStore((s) => s.loading); const showThinking = useChatStore((s) => s.showThinking); const toggleThinking = useChatStore((s) => s.toggleThinking); const { t } = useTranslation('chat'); return (
{/* Refresh */}

{t('toolbar.refresh')}

{/* Thinking Toggle */}

{showThinking ? t('toolbar.hideThinking') : t('toolbar.showThinking')}

); }