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","e","r","t","Object","keys","getOwnPropertySymbols","o","filter","getOwnPropertyDescriptor","enumerable","push","apply","_objectSpread","arguments","length","forEach","_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,CAAA,EAAAC,CAAA,QAAAC,CAAA,GAAAC,MAAA,CAAAC,IAAA,CAAAJ,CAAA,OAAAG,MAAA,CAAAE,qBAAA,QAAAC,CAAA,GAAAH,MAAA,CAAAE,qBAAA,CAAAL,CAAA,GAAAC,CAAA,KAAAK,CAAA,GAAAA,CAAA,CAAAC,MAAA,WAAAN,CAAA,WAAAE,MAAA,CAAAK,wBAAA,CAAAR,CAAA,EAAAC,CAAA,EAAAQ,UAAA,OAAAP,CAAA,CAAAQ,IAAA,CAAAC,KAAA,CAAAT,CAAA,EAAAI,CAAA,YAAAJ,CAAA;AAAA,SAAAU,cAAAZ,CAAA,aAAAC,CAAA,MAAAA,CAAA,GAAAY,SAAA,CAAAC,MAAA,EAAAb,CAAA,UAAAC,C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