// @bun
import{cn as G}from"@contractspec/lib.ui-kit-web/ui/utils";import{Boxes as N,Database as P,FileText as J,Globe as Y,Layout as E,MessageSquare as f,Settings as h,Shield as Q,Workflow as R}from"lucide-react";import*as Z from"react";import{jsx as k}from"react/jsx-runtime";var z={platform:h,documentation:J,docs:J,integration:R,api:Y,security:Q,data:P,messaging:f,ui:E,presentation:E},D={documentation:J,guides:J,"api-reference":Y,presentations:E,ui:E,rendering:E,mcp:R,integration:R,security:Q,auth:Q,data:P,storage:P},_={stable:"success",beta:"warning",experimental:"info",deprecated:"danger"},W={sm:"h-4 w-4",md:"h-5 w-5",lg:"h-6 w-6"};function p({domain:A,tags:U=[],stability:V,icon:K,size:$="md",className:q}){let B=Z.useMemo(()=>{if(K)return K;if(A){let H=z[A.toLowerCase()];if(H)return H}for(let H of U){let X=D[H.toLowerCase()];if(X)return X}return N},[A,U,K]),j=V?_[V]||"primary":"primary",C={success:"text-emerald-600 dark:text-emerald-400",warning:"text-amber-600 dark:text-amber-400",info:"text-blue-600 dark:text-blue-400",danger:"text-red-600 dark:text-red-400",primary:"text-primary"};return k(B,{className:G(W[$],C[j],q)})}function L(A){if(!A)return"primary";return _[A]||"primary"}export{L as getFeatureIconTone,p as FeatureIcon};
