24 lines
689 B
JavaScript
24 lines
689 B
JavaScript
(function () {
|
|
const RegistryApp = (window.RegistryApp = window.RegistryApp || {});
|
|
const { h } = RegistryApp.runtime;
|
|
const store = RegistryApp.store;
|
|
|
|
RegistryApp.componentFns = RegistryApp.componentFns || {};
|
|
|
|
RegistryApp.componentFns.Header = function Header({ title }) {
|
|
return h(
|
|
"div",
|
|
{ className: "header" },
|
|
h(
|
|
"h1",
|
|
{
|
|
style: { cursor: "pointer" },
|
|
onClick: () => store.setView("home"),
|
|
},
|
|
title,
|
|
),
|
|
h("p", null, "Organization Registration & Management Portal"),
|
|
);
|
|
};
|
|
})();
|