"use client"; import * as React from "react"; import { cn } from "./lib/utils"; export interface KillFeedEntry { id: string; killer: string; victim: string; weapon?: string; } export interface KillFeedProps extends React.HTMLAttributes { entries?: KillFeedEntry[]; max?: number; } /** Kill feed: stacked elimination log with mono names. */ export function KillFeed({ entries, max = 5, className, ...props }: KillFeedProps) { const fallback: KillFeedEntry[] = [ { id: "k1", killer: "ADA", victim: "REX", weapon: "RAIL" }, { id: "k2", killer: "ROW C", victim: "VIPER", weapon: "BLAST" }, { id: "k3", killer: "MAX", victim: "GOLEM", weapon: "DAGGER" }, ]; const rows = (entries ?? fallback).slice(0, max); return (
{rows.map((e) => (
{e.killer} {e.victim}
))}
); }