import e,{useCallback as r}from"react";import t from"react-inlinesvg";import s from"../hooks/useIconScreenReaderAccessProps.js";import{useIsMounted as o}from"../../../../../shared/dist/hooks/ssr/useIsMounted.js";import{getTestId as a}from"../../../../../shared/dist/tests/test-ids-utils.js";import{ComponentDefaultTestId as i,ComponentVibeId as n}from"../../../../../shared/dist/tests/constants.js";function l(e){return e.replace(/fill=".*?"/g,'fill="'.concat(arguments.length>1&&void 0!==arguments[1]?arguments[1]:"currentColor",'"'))}var c=function(c){var d=c.className,m=c.ref,u=c.src,f=c.onClick,p=c.replaceToCurrentColor,C=void 0!==p&&p,v=c.customColor,b=c.id,h=c["data-testid"],k=s({isClickable:c.clickable,label:c.ariaLabel,isDecorationOnly:c.ariaHidden}),g=o(),j=r((function(e){return C?l(e,"currentColor"):v?l(e,v):e}),[C,v]);if("string"!=typeof u)return null;var N=t.default||t,I=e.createElement("div",{className:d,id:b});return g?e.createElement(N,Object.assign({innerRef:m},k,{onClick:f,loader:I,src:u,className:d,preProcessor:j,id:b,"data-testid":h||a(i.SVG_ICON,b),"data-vibe":n.ICON}),I):I};export{c as default};
//# sourceMappingURL=CustomSvgIcon.js.map
