import { agentColor, agentIdenticon } from "../lib/agentIdentity"; interface AgentIdenticonProps { publicKey: string; size?: number; glow?: boolean; crystallize?: boolean; leader?: boolean; } export function AgentIdenticon({ publicKey, size = 40, glow, crystallize, leader }: AgentIdenticonProps) { const grid = agentIdenticon(publicKey); const color = agentColor(publicKey); const cellSize = size / 7; const padding = cellSize; const gap = cellSize * 0.12; let cellIndex = 0; return ( {glow && ( )} {crystallize && ( )} {grid.map((row, y) => row.map((filled, x) => { if (!filled) return null; const idx = cellIndex++; return ( ); }), )} {leader && (() => { const s = size * 0.28; const cx = size - s * 0.35; const cy = s * 0.35; return ( ); })()} ); }