import { Link } from "@tanstack/react-router"; import { MessageSquare } from "lucide-react"; import { HISTORY_ITEM_LINK_CLASS, SearchHistorySection, } from "@/client/features/ai-search/components/SearchHistorySection"; import { formatModelLabel } from "@/client/features/ai-search/platformLabels"; import type { PromptExplorerSearchHistoryItem } from "@/client/hooks/usePromptExplorerSearchHistory"; type Props = { projectId: string; history: PromptExplorerSearchHistoryItem[]; historyLoaded: boolean; onRemoveHistoryItem: (timestamp: number) => void; }; export function PromptExplorerHistorySection({ projectId, ...props }: Props) { return ( ( {content} )} renderItem={(item) => ( <>

{item.prompt}

{item.models.map(formatModelLabel).join(", ")}

)} /> ); }