package.cjs.react-utils.PageTitle.PageTitle.js Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of neeto-commons-frontend Show documentation
Show all versions of neeto-commons-frontend Show documentation
A package encapsulating common code across neeto projects including initializers, utility functions, common components and hooks and so on.
"use strict";
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
Object.defineProperty(exports, "__esModule", {
value: true
});
exports["default"] = void 0;
var _initializers = require("@bigbinary/neeto-commons-frontend/initializers");
var _reactHelmet = _interopRequireDefault(require("react-helmet"));
var _jsxRuntime = require("react/jsx-runtime");
var PageTitle = function PageTitle(_ref) {
var title = _ref.title;
var pageTitle = title ? "".concat(title, " | ").concat(_initializers.globalProps.appName) : _initializers.globalProps.appName;
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactHelmet["default"], {
children: /*#__PURE__*/(0, _jsxRuntime.jsx)("title", {
children: pageTitle
})
});
};
var _default = PageTitle;
exports["default"] = _default;
//# sourceMappingURL=PageTitle.js.map