29 lines
867 B
TypeScript
29 lines
867 B
TypeScript
|
|
"use client";
|
||
|
|
|
||
|
|
import LayoutProvider from "@/providers/layout.provider";
|
||
|
|
import LayoutContentProvider from "@/providers/content.provider";
|
||
|
|
import DashCodeSidebar from "@/components/partials/sidebar";
|
||
|
|
import DashCodeFooter from "@/components/partials/footer";
|
||
|
|
import ThemeCustomize from "@/components/partials/customizer";
|
||
|
|
import DashCodeHeader from "@/components/partials/header";
|
||
|
|
|
||
|
|
import { redirect } from "@/components/navigation";
|
||
|
|
import Footer from "@/components/landing-page/footer";
|
||
|
|
import Navbar from "@/components/landing-page/navbar";
|
||
|
|
import { useParams } from "next/navigation";
|
||
|
|
|
||
|
|
const layout = ({ children }: { children: React.ReactNode }) => {
|
||
|
|
const params = useParams();
|
||
|
|
const poldaName: any = params?.polda_name;
|
||
|
|
return (
|
||
|
|
// children
|
||
|
|
// ) : (
|
||
|
|
<>
|
||
|
|
<Navbar />
|
||
|
|
{children}
|
||
|
|
<Footer />
|
||
|
|
</>
|
||
|
|
);
|
||
|
|
};
|
||
|
|
|
||
|
|
export default layout;
|