content: import React from 'react'
  import server from 'react-dom/server'
  
  /**
   * Render the HTML layout
   *
   * @param head
   * @param body & scripts
   * @param resolverPayload
   * @returns {string}
   */
  export function renderHtmlLayout(head, body, resolverPayload = {}) {
    return '<!DOCTYPE html>' + (0, server.renderToStaticMarkup)(React.createElement(
        'html',
        head.htmlAttributes.toComponent(),
        React.createElement(
          'head',
          null,
          head.title.toComponent(),
          head.meta.toComponent(),
          head.base.toComponent(),
          head.link.toComponent(),
          head.script.toComponent(),
          head.style.toComponent(),
          React.createElement(
            'script',
            {
              dangerouslySetInnerHTML: {__html: `__REACT_RESOLVER_PAYLOAD__=${JSON.stringify(resolverPayload)}`}
            }
          )
        ),
        React.createElement(
          'body',
          null,
          body
        )
      ));
  }
  