import { HistoryItem } from './HistoryItem'; import { HistoryEmptyState } from './HistoryEmptyState'; import type { VideoHistoryItem } from '@/lib/types'; interface HistoryListProps { history: VideoHistoryItem[]; onRemove: (videoId: string | number, source: string) => void; } export function HistoryList({ history, onRemove }: HistoryListProps) { return (
{history.length === 0 ? ( ) : (
{history.map((item) => ( onRemove(item.videoId, item.source)} /> ))}
)}
); }