"use client";

import ContactUsKaltara from "@/components/landing-page/landing-polda-kaltara/contact-us-kaltara";
import ContentCategoryKaltara from "@/components/landing-page/landing-polda-kaltara/content-category-kaltara";
import HeaderBannerKaltara from "@/components/landing-page/landing-polda-kaltara/header-banner-kaltara";
import LatestContentKaltara from "@/components/landing-page/landing-polda-kaltara/latest-content-kaltara";
import NavbarKaltara from "@/components/landing-page/landing-polda-kaltara/navbar-polda-kaltara";
import WelcomePolda from "@/components/landing-page/welcome-polda";
import React from "react";
import NewsTickerKaltara from "../../tbnews/[polda_name]/components/news-tickers-kaltara";
import { useParams } from "next/navigation";

const PoldaKaltara2 = () => {
  const params = useParams();
  const poldaName: string | undefined = params?.polda_name as string;

  if (poldaName !== "kaltara") {
    return null;
  }

  return (
    <div>
      <NavbarKaltara />
      <HeaderBannerKaltara />
      {/* <SearchSectionKaltara /> */}
      <div className="px-4 lg:px-[100px]">
        <WelcomePolda />
      </div>
      <LatestContentKaltara group="polda" type="latest" />
      <LatestContentKaltara group="polda" type="popular" />
      <ContentCategoryKaltara type="" group="polda" />
      <ContactUsKaltara />
      <NewsTickerKaltara />
    </div>
  );
};

export default PoldaKaltara2;
