import type { AuditLogEntry } from '@admin/actions/audit/types' import type { LucideIcon } from 'lucide-react' import { Bot, PenLine, ShieldCheck, User } from 'lucide-react' export function getAuditActorIcon( auditLog: Pick ): LucideIcon { if (auditLog.sourceType === 'system_job' || !auditLog.actorUserId) return Bot if (auditLog.actorRole === 'admin') return ShieldCheck if (auditLog.actorRole === 'editor') return PenLine return User }