import * as Dialog from '@radix-ui/react-dialog'; import { type ChatHistoryItem } from '~/lib/persistence'; import WithTooltip from '~/components/ui/Tooltip'; interface HistoryItemProps { item: ChatHistoryItem; onDelete?: (event: React.UIEvent) => void; onDuplicate?: (id: string) => void; exportChat: (id?: string) => void; } export function HistoryItem({ item, onDelete, onDuplicate, exportChat }: HistoryItemProps) { return (
); }