const ROLE_LABEL = {
  admin: "Administrador/a",
  gestor: "Gestor/a",
  consulta: "Consulta"
};
const RANK = { consulta: 0, gestor: 1, admin: 2 };
function roleAtLeast(role, min) {
  if (!role) return false;
  return RANK[role] >= RANK[min];
}

export { ROLE_LABEL as R, roleAtLeast as r };
//# sourceMappingURL=roles.js-aWc1U_OX.js.map
