UNPKG

@leafage/component

Version:

The React Server Side Render Framework

23 lines (20 loc) 987 B
/** * @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 */ import React from '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())); }; export { Document as default };