Files
AstralRinth/apps/frontend/src/helpers/users.js
Evan Song abec2e48d4 Add TailwindCSS (#1252)
* Setup TailwindCSS

* Fully setup configuration

* Refactor some tailwind variables
2024-07-06 20:57:32 -07:00

10 lines
218 B
JavaScript

export const getUserLink = (user) => {
return `/user/${user.username}`;
};
export const isStaff = (user) => {
return user && STAFF_ROLES.includes(user.role);
};
export const STAFF_ROLES = ["moderator", "admin"];