Files
hats-app/app/(dashboard)/layout.tsx
T
Ichsan Kurniawan 36b5b07d28 update UI
2026-01-29 14:13:32 +07:00

39 lines
1.5 KiB
TypeScript

import { Suspense, lazy } from "react"
import LazyLoading from "@/components/loader/LazyLoading"
import Link from "next/link"
const Header = lazy(() => import("./components/Header"))
const FooterV2 = lazy(() => import("./components/FooterV2"))
// const Footer = lazy(() => import("./components/Footer"))
export default function HomeLayout({
children, // will be a page or nested layout
}: {
children: React.ReactNode
}) {
return (
<section className="flex flex-col h-screen overflow-y-hidden bg-soft dark:bg-zinc-950">
<div className="overflow-x-hidden overflow-y-auto min-h-screen flex flex-col">
<Suspense fallback={<LazyLoading />}>
<Header />
</Suspense>
<div className="w-full 2xl:w-[1400px] mx-auto">
{/* <div> */}
{children}
</div>
{/* <Footer /> */}
<Suspense fallback={<LazyLoading />}>
<FooterV2 />
</Suspense>
<div className="mt-auto flex flex-col items-center justify-between pt-2 pb-6 px-3 sm:px-0 text-xs md:text-sm font-medium text-zinc-400 text-center gap-1 mb-28 sm:mb-0">
<p className="mx-auto w-9/12 sm:w-full">© {new Date().getFullYear()} - H.A.T.s | Design & Develop by <Link href='/hats-team' className="hover:text-his hover:font-semibold hover:translate-y-2 duration-300">H.I.S Dev Super Team 😎</Link></p>
</div>
</div>
</section>
)
}