import{jsxs as t,jsx as r}from"react/jsx-runtime";import{B as n}from"./badge-CFi7bqqA.js";import{Crown as a,Shield as i,User as o}from"lucide-react";import"@radix-ui/react-slot";import"class-variance-authority";import"./utils-CMbmcP35.js";import"clsx";import"tailwind-merge";function s(e){switch(e){case 2:return"Leader";case 3:return"Director";case 4:return"Marshal";case 5:return"Executor";case 6:return"Comissioner";default:return"Member"}}function u(e){return e===2?r(a,{className:"h-4 w-4 text-yellow-500"}):e>=3?r(i,{className:"h-4 w-4 text-blue-500"}):r(o,{className:"h-4 w-4 text-gray-500"})}function c(e){return e===6?"default":e>=4?"secondary":"outline"}function w({role:e}){return t("div",{className:"flex items-center justify-center gap-2",children:[u(e),r(n,{variant:c(e),children:s(e)})]})}export{w as RoleBadge,c as getRoleBadgeVariant,u as getRoleIcon,s as getRoleName};
