src/widgets/refinement-list/refinement-list.js
function transformTemplates(templates) {
  const allTemplates = {
    ...templates,
    submit: templates.searchableSubmit,
    reset: templates.searchableReset,
    loadingIndicator: templates.searchableLoadingIndicator,
  };

  const {
    searchableReset,
    searchableSubmit,
    searchableLoadingIndicator,
    ...transformedTemplates
  } = allTemplates;

  return transformedTemplates;
}
function transformTemplates(templates) {
  const allTemplates = {
    ...templates,
    submit: templates.searchableSubmit,
    reset: templates.searchableReset,
    loadingIndicator: templates.searchableLoadingIndicator,
  };

  const {
    searchableReset,
    searchableSubmit,
    searchableLoadingIndicator,
    ...transformedTemplates
  } = allTemplates;

  return transformedTemplates;
}
function transformTemplates ( templates ) { const allTemplates = { ... templates , submit : templates . searchableSubmit , reset : templates . searchableReset , loadingIndicator : templates . searchableLoadingIndicator , } ; const { searchableReset , searchableSubmit , searchableLoadingIndicator , ... transformedTemplates } = allTemplates ; return transformedTemplates ; }
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
Transforms the searchable templates by removing the searchable prefix .