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

package.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":["Helmet","jsx","_jsx","Fragment","_Fragment","jsxs","_jsxs","withTitle","Component","title","arguments","length","undefined","props","pageTitle","concat","globalProps","appName","children","_objectSpread"],"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":";;;AAAA;AACA,SAASA,MAAM,QAAQ,cAAc;AAAC,SAAAC,GAAA,IAAAC,IAAA;AAAA,SAAAC,QAAA,IAAAC,SAAA;AAAA,SAAAC,IAAA,IAAAC,KAAA;AAEtC,IAAMC,SAAS,GACb,SADIA,SAASA,CACZC,SAAS;EAAA,IAAEC,KAAK,GAAAC,SAAA,CAAAC,MAAA,QAAAD,SAAA,QAAAE,SAAA,GAAAF,SAAA,MAAGE,SAAS;EAAA,OAC7B,UAAAC,KAAK,EAAI;IACP,IAAMC,SAAS,GAAGL,KAAK,MAAAM,MAAA,CAChBN,KAAK,SAAAM,MAAA,CAAMC,WAAW,CAACC,OAAO,IACjCD,WAAW,CAACC,OAAO;IAEvB,oBACEX,KAAA,CAAAF,SAAA;MAAAc,QAAA,gBACEhB,IAAA,CAACF,MAAM;QAAAkB,QAAA,eACLhB,IAAA;UAAAgB,QAAA,EAAQJ;QAAS;MAAS,EACnB,eACTZ,IAAA,CAACM,SAAS,EAAAW,aAAA,KAAKN,KAAK,EAAI;IAAA,EACvB;EAEP,CAAC;AAAA;AAEH,eAAeN,SAAS"}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy