"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";
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";
import ContentCategoryKaltara from "@/components/landing-page/landing-polda-kaltara/content-category-kaltara";
import HeroNew from "@/components/landing-page/hero-new";
import Navbar from "@/components/landing-page/navbar";
import SearchSection from "@/components/landing-page/search-section";
import Footer from "@/components/landing-page/footer";
import SearchSectionPolda from "@/components/landing-page/search-section-polda";
import HeroNewPolda from "@/components/landing-page/hero-new-polda";

const page = () => {
  const params = useParams();
  const poldaName: any = params?.polda_name;
  return poldaName === "kaltara" ? (
    <div>
      <NavbarKaltara />
      <HeaderBannerKaltara />
      {/* <SearchSectionKaltara /> */}
      <WelcomePolda />
      <LatestContentKaltara group="polda" type="latest" />
      <LatestContentKaltara group="polda" type="popular" />
      <ContentCategoryKaltara type="" group="polda" />
      <ContactUsKaltara />
      <NewsTickerKaltara />
    </div>
  ) : (
    // <div>
    //   {/* <HeaderBanner /> */}
    //   <HeroNew group="polda" />
    //   <WelcomePolda />
    //   <NewContent group="polda" type="latest" />
    //   <NewContent group="polda" type="popular" />
    //   <ContentCategory type="" group="polda" />
    // </div>
    <div>
      <HeroNew group="polda" />
      <div className="flex-1 ">
        <SearchSectionPolda />
      </div>
    </div>
  );
};

export default page;
