src/lib/utils/prepareTemplateProps.js
function prepareTemplateProps({
  defaultTemplates,
  templates,
  templatesConfig,
}) {
  const preparedTemplates = prepareTemplates(defaultTemplates, templates);

  return {
    templatesConfig,
    ...preparedTemplates,
  };
}
function prepareTemplateProps({
  defaultTemplates,
  templates,
  templatesConfig,
}) {
  const preparedTemplates = prepareTemplates(defaultTemplates, templates);

  return {
    templatesConfig,
    ...preparedTemplates,
  };
}
function prepareTemplateProps ( { defaultTemplates , templates , templatesConfig , } ) { const preparedTemplates = prepareTemplates ( defaultTemplates , templates ) ; return { templatesConfig , ... preparedTemplates , } ; }
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
Prepares an object to be passed to the Template widget