export const getComponentsBySearchTerm = (
  name: string,
  indexOfSearchTerm: number,
  searchTerm: string,
) => [
  {text: name.substring(0, indexOfSearchTerm)},
  {
    text: name.substring(
      indexOfSearchTerm,
      indexOfSearchTerm + searchTerm.length,
    ),
    bold: true,
  },
  {text: name.substring(indexOfSearchTerm + searchTerm.length)},
];
