"use client";
import type { HistoryEntry } from "@/lib/query";
export function QueryHistory({
entries,
onSelect,
onClear,
}: {
entries: HistoryEntry[];
onSelect: (entry: HistoryEntry) => void;
onClear: () => void;
}) {
if (entries.length === 0) return null;
return (
{entries.map((entry, index) => (
))}
);
}