export function formatAuditRole(role: string | null | undefined): string { if (!role) return 'No role' return role.charAt(0).toUpperCase() + role.slice(1) }