"use client"; import { RouterJob } from "@/app/lib/router_hipmi/router_job"; import { MainColor } from "@/app_modules/component_global/color/color_pallet"; import { ComponentGlobal_NotifikasiPeringatan } from "@/app_modules/component_global/notif_global/notifikasi_peringatan"; import UIGlobal_LayoutHeaderTamplate from "@/app_modules/component_global/ui/ui_header_tamplate"; import UIGlobal_LayoutTamplate from "@/app_modules/component_global/ui/ui_layout_tamplate"; import { ActionIcon, SimpleGrid, Stack, Text } from "@mantine/core"; import { IconHistory, IconHome, IconReservedLine } from "@tabler/icons-react"; import { useAtom } from "jotai"; import { useRouter } from "next/navigation"; import React, { useState } from "react"; import { gs_job_hot_menu } from "../global_state"; import { RouterHome } from "@/app/lib/router_hipmi/router_home"; export default function LayoutJob_Main({ children, }: { children: React.ReactNode; }) { const router = useRouter(); const [hotMenuId, setHotMenuId] = useAtom(gs_job_hot_menu); const [isLoading, setLoading] = useState(false); const listFooter = [ { id: 1, name: "Beranda", path: RouterJob.beranda, icon: , }, { id: 2, name: "Status", path: RouterJob.status, icon: , }, { id: 3, name: "Arsip", path: RouterJob.arsip, icon: , }, ]; return ( <> } footer={ {listFooter.map((e, i) => ( e.path === "" ? ComponentGlobal_NotifikasiPeringatan("Cooming Soon") : (router.replace(e.path), setHotMenuId(e.id)) } > {e.icon} {e.name} ))} // // // {listFooter.map((e) => ( // { // // setLoading(true); // // setTimeout(() => router.replace(e.path), 3000); // router.replace(e.path); // setHotMenuId(e.id); // // setTimeout(() => setLoading(false), 1000); // }} // > //
// // // {e.icon} // // // {e.name} // // //
//
// ))} //
//
} > {children}
); }