code: function transformTemplates(templates) {
    const allTemplates = {
      ...templates,
      submit: templates.searchableSubmit,
      reset: templates.searchableReset,
      loadingIndicator: templates.searchableLoadingIndicator,
    };
  
    const {
      searchableReset,
      searchableSubmit,
      searchableLoadingIndicator,
      ...transformedTemplates
    } = allTemplates;
  
    return transformedTemplates;
  }
docs: Transforms the searchable templates by removing the `searchable` prefix.
  
  This makes them usable in the `SearchBox` component.
  
  @param {object} templates The widget templates
  @returns {object} the formatted templates