UNPKG

seti-ramesesv1

Version:

Reusable components and context for Next.js apps

64 lines (61 loc) 1.76 kB
import { jsx } from 'react/jsx-runtime'; // import { loadPage } from "loader-lib"; // import { useEffect, useState } from "react"; // import { ContentPanel, TabList } from "../components"; // import { useContent } from "../context/ContentContext"; // const tabItems = [ // { // id: "dashboard", // label: "Dashboard", // }, // { // id: "txn", // label: "Transactions", // }, // { // id: "mgmt", // label: "Management", // }, // { // id: "insight", // label: "Insight", // }, // { // id: "settings", // label: "Settings", // }, // ]; // const ModuleMainPage = (props: any) => { // const [tabId, setTabId] = useState("dashboard"); // const [target] = useState<any>("module"); // const { setContent } = useContent(); // const openItem = async (item: Record<string, any>) => { // const tabId = item.id; // setTabId(tabId); // localStorage.setItem("activetab", item.id); // const page = await loadPage({ // page: item.id, // target: target, // }); // setContent(target, () => page); // }; // useEffect(() => { // const savedTab = localStorage.getItem("activetab"); // const tab = tabItems.find((t) => t.id === savedTab) || tabItems[0]; // openItem(tab); // }, []); // return ( // <div className="flex flex-col h-screen overflow-hidden"> // <TabList items={tabItems} openItem={openItem} value={tabId} /> // <div className=" shrink-0"> // <ContentPanel id={target} /> // </div> // </div> // ); // }; // export default ModuleMainPage; const ModuleMainPage = () => { return jsx("div", { children: "ModuleMainPage" }); }; export { ModuleMainPage as default }; //# sourceMappingURL=ModuleMainPage.js.map