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