"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react/jsx-runtime"),r=require("react"),t=require("./HighlightsText.scss.js"),i=r.memo((function(r){var i=r.text,n=r.highlight;if(null==n||!n.trim())return e.jsx(e.Fragment,{children:i});var s=new RegExp("(".concat(n.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),")"),"gi"),a=i.split(s);return e.jsx(e.Fragment,{children:a.map((function(r,i){return i%2==1?e.jsx("span",{className:t.highlightText,children:r},i):r}))})}));exports.HighlightText=i;
//# sourceMappingURL=HighlightText.js.map
