import type { Agent } from "@paperclip/shared";
import { StatusBadge } from "./StatusBadge";
import { formatCents, formatDate } from "../lib/utils";
import { Separator } from "@/components/ui/separator";
interface AgentPropertiesProps {
agent: Agent;
}
function PropertyRow({ label, children }: { label: string; children: React.ReactNode }) {
return (
);
}
export function AgentProperties({ agent }: AgentPropertiesProps) {
return (
{agent.role}
{agent.title && (
{agent.title}
)}
{agent.adapterType}
{agent.contextMode}
{formatCents(agent.spentMonthlyCents)} / {formatCents(agent.budgetMonthlyCents)}
{agent.budgetMonthlyCents > 0
? Math.round((agent.spentMonthlyCents / agent.budgetMonthlyCents) * 100)
: 0}
%
{agent.lastHeartbeatAt && (
{formatDate(agent.lastHeartbeatAt)}
)}
{agent.reportsTo && (
{agent.reportsTo.slice(0, 8)}
)}
{formatDate(agent.createdAt)}
);
}