code: function prepareTemplateProps({
    defaultTemplates,
    templates,
    templatesConfig,
  }) {
    const preparedTemplates = prepareTemplates(defaultTemplates, templates);
  
    return {
      templatesConfig,
      ...preparedTemplates,
    };
  }
docs: Prepares an object to be passed to the Template widget
  @param {object} unknownBecauseES6 an object with the following attributes:
  - defaultTemplate
  - templates
  - templatesConfig
  @return {object} the configuration with the attributes:
  - defaultTemplate
  - templates
  - useCustomCompileOptions