{activity.length === 0 && (
{t("dashboard.noRecentActivity")}
)}
{activity.map((item) => {
const host = hosts.find((h) => h.id === String(item.hostId));
return (
{
if (host) onOpenTab(host, typeToTab[item.type]);
}}
className="flex items-center justify-between px-4 py-2 border-b border-border last:border-0 hover:bg-muted/50 cursor-pointer"
>
{item.hostName}
{typeIcon[item.type]}
{typeLabel[item.type]}
{formatTime(item.timestamp)}
);
})}