import{jsx as r}from"react/jsx-runtime";import{useCallback as e}from"react";import o from"classnames";import t from"react-inlinesvg";import a from"../../../hooks/useIconScreenReaderAccessProps.js";function c(r){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"currentColor";return r.replace(/fill=".*?"/g,'fill="'.concat(e,'"'))}var i=function(i){var n=i.className,s=i.ref,l=i.src,m=i.onClick,u=i.replaceToCurrentColor,f=void 0!==u&&u,p=i.customColor,d=i["data-testid"],C=a({isClickable:i.clickable,label:i.ariaLabel,isDecorationOnly:i.ariaHidden}),v=e((function(r){return f?c(r,"currentColor"):p?c(r,p):r}),[f,p]);return"string"!=typeof l?null:r(t,Object.assign({innerRef:s},C,{onClick:m,src:l,className:o("l3-style-custom-svg-icon--wrapper",n),preProcessor:v,"data-testid":d}))};export{i as default};
