export const highlightPattern = ( text: string, widthHeight: string, pos: string[], posFocus: string[], ) => { if (posFocus.includes(widthHeight)) { return `${text}`; } return pos.includes(widthHeight) ? `${text}` : text; };