import Link from "next/link";
import { SparkleIcon } from "./icons";
import { Avatar } from "./ui";
/*
* How work by agents reads in the UI: the agent's name with the sparkle, and the person it acted
* for, so a comment or commit by "Claude Code" still says whose access it used.
*/
/** An agent's mark where a person's avatar would be. */
export function AgentAvatar({ size = 20, className = "" }: { size?: number; className?: string }) {
return (
);
}
/** A person's or an agent's avatar. */
export function ActorAvatar({ name, agent, size = 20, className = "" }: { name: string; agent?: string | null; size?: number; className?: string }) {
return agent ? : ;
}
/** "alice", or "Claude Code for alice" when an agent acted. */
export function ActorName({ person, agent, className = "font-medium text-ink" }: { person: string; agent?: string | null; className?: string }) {
const profile = (
{person}
);
if (!agent) return profile;
return (
{agent}
for
{profile}
);
}