(userId: string)
| 6 | } |
| 7 | |
| 8 | export function isAdmin(userId: string): boolean { |
| 9 | return getAdminIds().includes(userId); |
| 10 | } |
| 11 | |
| 12 | // Browser-safe admin check. Reads NEXT_PUBLIC_ADMIN_USER_IDS, which is a |
| 13 | // non-sensitive mirror used purely for conditionally rendering admin UI; |
no test coverage detected