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