import { ChevronLeft, ChevronRight, Radio } from "lucide-react"; import { Button } from "@/shared/ui/button"; import { Select, SelectContent, SelectItem, SelectTrigger, SelectValue } from "@/shared/ui/select"; import type { PresentationHistoryControls } from "../utils/presentation-view-history"; const statusLabels = { running: "进行中", completed: "完成", error: "未完成", cancelled: "已取消" }; export function PresentationHistorySwitcher({ entries, currentEntryId, selectedId, onSelect }: PresentationHistoryControls) { const currentEntry = entries.find((entry) => entry.id === currentEntryId); const available = entries.filter( (entry) => entry.status !== "running" && entry.id !== currentEntryId ); const index = selectedId === null ? available.length : available.findIndex((entry) => entry.id === selectedId); return (
{selectedId !== null ? ( ) : null}
); }