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