2024-12-31 08:25:40 +00:00
|
|
|
"use client";
|
|
|
|
|
|
|
|
|
|
import ContentCategory from "@/components/landing-page/content-category";
|
|
|
|
|
import HeaderBanner from "@/components/landing-page/header-banner";
|
|
|
|
|
import NewContent from "@/components/landing-page/new-content";
|
|
|
|
|
import WelcomePolda from "@/components/landing-page/welcome-polda";
|
|
|
|
|
import React from "react";
|
2025-03-24 17:22:16 +00:00
|
|
|
import { useParams } from "next/navigation";
|
|
|
|
|
import NavbarKaltara from "@/components/landing-page/landing-polda-kaltara/navbar-polda-kaltara";
|
|
|
|
|
import HeaderBannerKaltara from "@/components/landing-page/landing-polda-kaltara/header-banner-kaltara";
|
|
|
|
|
import SearchSectionKaltara from "@/components/landing-page/landing-polda-kaltara/search-section-kaltara";
|
|
|
|
|
import LatestContentKaltara from "@/components/landing-page/landing-polda-kaltara/latest-content-kaltara";
|
|
|
|
|
import ContactUsKaltara from "@/components/landing-page/landing-polda-kaltara/contact-us-kaltara";
|
|
|
|
|
import NewsTickerKaltara from "../../tbnews/[polda_name]/components/news-tickers-kaltara";
|
2024-12-31 08:25:40 +00:00
|
|
|
|
|
|
|
|
const page = () => {
|
2025-03-24 17:22:16 +00:00
|
|
|
const params = useParams();
|
|
|
|
|
const poldaName: any = params?.polda_name;
|
|
|
|
|
return poldaName === "kaltara" ? (
|
|
|
|
|
<div>
|
|
|
|
|
<NavbarKaltara />
|
|
|
|
|
<HeaderBannerKaltara />
|
|
|
|
|
<SearchSectionKaltara />
|
|
|
|
|
<LatestContentKaltara group="polda" type="latest" />
|
|
|
|
|
<LatestContentKaltara group="polda" type="popular" />
|
|
|
|
|
<ContentCategory group="polda" />
|
|
|
|
|
<ContactUsKaltara />
|
|
|
|
|
<NewsTickerKaltara />
|
|
|
|
|
</div>
|
|
|
|
|
) : (
|
2024-12-31 08:25:40 +00:00
|
|
|
<div>
|
|
|
|
|
<HeaderBanner />
|
|
|
|
|
<WelcomePolda />
|
2025-01-07 17:44:23 +00:00
|
|
|
<NewContent group="polda" type="latest" />
|
|
|
|
|
<NewContent group="polda" type="popular" />
|
2025-01-13 00:35:40 +00:00
|
|
|
<ContentCategory group="polda" />
|
2024-12-31 08:25:40 +00:00
|
|
|
</div>
|
|
|
|
|
);
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
export default page;
|