feat(auth): add getPrimaryUserRole helper for header display

This commit is contained in:
Arthur Bassi 2026-06-17 17:41:29 -03:00
parent 5ec91d5c35
commit 588a765089

View file

@ -0,0 +1,6 @@
export function getPrimaryUserRole(
userRoles: string | null | undefined,
fallback = "User",
): string {
return userRoles?.split(",")[0]?.trim() || fallback;
}