@leafage/component
Version:
The React Server Side Render Framework
27 lines (22 loc) • 1.06 kB
JavaScript
/**
* @leafage/component v1.3.2
*
* Copyright (c) Leafage.
*
* This source code is licensed under the MIT license found in the
* LICENSE.md file in the root directory of this source tree.
*
* @license MIT
*/
;
Object.defineProperty(exports, '__esModule', { value: true });
var React = require('react');
var Document = function Document(_ref) {
var Scripts = _ref.Scripts,
Links = _ref.Links,
helmet = _ref.helmet,
context = _ref.context,
children = _ref.children;
return /*#__PURE__*/React.createElement("html", helmet.htmlAttributes.toComponent(), /*#__PURE__*/React.createElement("head", null, helmet.base.toComponent(), helmet.title.toComponent(), helmet.meta.toComponent(), helmet.link.toComponent(), helmet.style.toComponent(), helmet.noscript.toComponent(), /*#__PURE__*/React.createElement(Links, null)), /*#__PURE__*/React.createElement("body", helmet.bodyAttributes.toComponent(), children, context, /*#__PURE__*/React.createElement(Scripts, null), helmet.script.toComponent()));
};
exports.default = Document;