package.react-utils.PageTitle.PageTitle.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":"PageTitle.js","names":["globalProps","Helmet","jsx","_jsx","PageTitle","_ref","title","pageTitle","concat","appName","children"],"sources":["../../../src/react-utils/PageTitle/PageTitle.jsx"],"sourcesContent":["import { globalProps } from \"neetocommons/initializers\";\nimport PropTypes from \"prop-types\";\nimport Helmet from \"react-helmet\";\n\nconst PageTitle = ({ title }) => {\n const pageTitle = title\n ? `${title} | ${globalProps.appName}`\n : globalProps.appName;\n\n return (\n \n {pageTitle} \n \n );\n};\n\nPageTitle.propTypes = {\n /**\n * Title to be set to the page.\n */\n title: PropTypes.string,\n};\n\nexport default PageTitle;\n"],"mappings":"AAAA,SAASA,WAAW;AAEpB,OAAOC,MAAM,MAAM,cAAc;AAAC,SAAAC,GAAA,IAAAC,IAAA;AAElC,IAAMC,SAAS,GAAG,SAAZA,SAASA,CAAAC,IAAA,EAAkB;EAAA,IAAZC,KAAK,GAAAD,IAAA,CAALC,KAAK;EACxB,IAAMC,SAAS,GAAGD,KAAK,MAAAE,MAAA,CAChBF,KAAK,SAAAE,MAAA,CAAMR,WAAW,CAACS,OAAO,IACjCT,WAAW,CAACS,OAAO;EAEvB,oBACEN,IAAA,CAACF,MAAM;IAAAS,QAAA,eACLP,IAAA;MAAAO,QAAA,EAAQH;IAAS;EAAS,EACnB;AAEb,CAAC;AASD,eAAeH,SAAS"}