package.react-utils.withTitle.withTitle.js.map 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.
{"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,EAAAC,QAAA,IAAAC,SAAA,EAAAC,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,CAAQ;MAAC,CACpB,CAAC,eACTZ,IAAA,CAACM,SAAS,EAAAW,aAAA,KAAKN,KAAK,CAAG,CAAC;IAAA,CACxB,CAAC;EAEP,CAAC;AAAA;AAEH,eAAeN,SAAS","ignoreList":[]}