"use client"; import { useAppStore } from "@/components/state-provider"; import { formatRelativeTime } from "@/lib/utils"; import { AgentAvatar } from "@/app/office/components/agent-avatar"; import type { TaskActivityEntry } from "@/app/office/tasks/[id]/types"; type TaskActivityProps = { taskId: string; entries: TaskActivityEntry[]; }; function ActivityRow({ entry }: { entry: TaskActivityEntry }) { const agentName = useAppStore((s) => entry.actorType === "agent" ? (s.office.agentProfiles.find((a) => a.id === entry.actorId)?.name ?? "Agent") : "", ); let actorName = "System"; if (entry.actorType === "user") actorName = "You"; else if (entry.actorType === "agent") actorName = agentName; return (
No activity yet
; } return (