All Downloads are FREE. Search and download functionalities are using the official Maven repository.

package.cjs.react-utils.withTitle.withTitle.js.map Maven / Gradle / Ivy

Go to download

A package encapsulating common code across neeto projects including initializers, utility functions, common components and hooks and so on.

There is a newer version: 4.12.3
Show newest version
{"version":3,"file":"withTitle.js","names":["_reactHelmet","require","_jsxRuntime","ownKeys","object","enumerableOnly","keys","Object","getOwnPropertySymbols","symbols","filter","sym","getOwnPropertyDescriptor","enumerable","push","apply","_objectSpread","target","i","arguments","length","source","forEach","key","_defineProperty2","getOwnPropertyDescriptors","defineProperties","defineProperty","withTitle","Component","title","undefined","props","pageTitle","concat","globalProps","appName","jsxs","Fragment","children","jsx","Helmet","_default","exports"],"sources":["../../../../src/react-utils/withTitle/withTitle.jsx"],"sourcesContent":["/* eslint-disable react/display-name */\nimport { Helmet } from \"react-helmet\";\n\nconst withTitle =\n  (Component, title = undefined) =>\n  props => {\n    const pageTitle = title\n      ? `${title} | ${globalProps.appName}`\n      : globalProps.appName;\n\n    return (\n      <>\n        \n          {pageTitle}\n        \n        \n      \n    );\n  };\n\nexport default withTitle;\n"],"mappings":";;;;;;;;AACA,IAAAA,YAAA,GAAAC,OAAA;AAAsC,IAAAC,WAAA,GAAAD,OAAA;AAAA,SAAAE,QAAAC,MAAA,EAAAC,cAAA,QAAAC,IAAA,GAAAC,MAAA,CAAAD,IAAA,CAAAF,MAAA,OAAAG,MAAA,CAAAC,qBAAA,QAAAC,OAAA,GAAAF,MAAA,CAAAC,qBAAA,CAAAJ,MAAA,GAAAC,cAAA,KAAAI,OAAA,GAAAA,OAAA,CAAAC,MAAA,WAAAC,GAAA,WAAAJ,MAAA,CAAAK,wBAAA,CAAAR,MAAA,EAAAO,GAAA,EAAAE,UAAA,OAAAP,IAAA,CAAAQ,IAAA,CAAAC,KAAA,CAAAT,IAAA,EAAAG,OAAA,YAAAH,IAAA;AAAA,SAAAU,cAAAC,MAAA,aAAAC,CAAA,MAAAA,CAAA,GAAAC,SAAA,CAAAC,MAAA,EAA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