'use client'; import React from 'react'; import { Activity, PanelRightOpen, X } from 'lucide-react'; import { TaskTimeline } from '@/components/task-detail'; import { ScrollArea } from '@/components/ui/scroll-area'; import { pickAppText } from '@/lib/i18n/core'; import { useAppI18n } from '@/lib/i18n/provider'; import type { TaskTimelineCard } from '@/types'; function ProgressPanel({ cards, isLive, onClose, }: { cards: TaskTimelineCard[]; isLive: boolean; onClose?: () => void; }) { const { locale } = useAppI18n(); return (

{pickAppText(locale, '当前会话的运行进度', 'Current Session Progress')}

{isLive ? : null} {isLive ? pickAppText(locale, '任务时间线实时更新', 'Task timeline updates live') : pickAppText(locale, '与任务详情时间线一致', 'Matches the Task detail timeline')}

{onClose ? ( ) : null}
); } export function CurrentSessionProgressSidebar({ cards, isLive, }: { cards: TaskTimelineCard[]; isLive: boolean; }) { const { locale } = useAppI18n(); const [mobileOpen, setMobileOpen] = React.useState(false); return ( <> {mobileOpen ? (
) : null} ); }