import{getNodeAttribute as s}from"../../../../markdoc/helpers/get-node-attribute.js";import{resolveLink as m}from"./resolve-link.js";import{resolveSvgContent as g}from"./resolve-svg-content.js";import{isIconPath as l}from"../../../utils/index.js";import{getLinkOriginalAttrName as p}from"./utils.js";async function k(i,r,t,{context:e,actions:n}){const f=p(r),o=i[f]||s(i,r);!o||typeof o!="string"||(o.endsWith(".svg")?await g(i,r,t,{context:e,actions:n}):l(o)&&await m(i,r,t,{context:e,actions:n}))}export{k as resolveRelativeOrCdnIcon};
