"use client";
import { Link, useRouter } from "@/i18n/routing";
import Image from "next/image";
import { useParams, usePathname } from "next/navigation";
import React, { useState } from "react";
import { NavigationMenu, NavigationMenuContent, NavigationMenuItem, NavigationMenuLink, NavigationMenuList, NavigationMenuTrigger, navigationMenuTriggerStyle } from "@/components/ui/navigation-menu";
import { FiFile, FiImage, FiMusic, FiYoutube } from "react-icons/fi";
import { useTranslations } from "next-intl";
import LocalSwitcher from "@/components/partials/header/locale-switcher";
import ThemeSwitcher from "@/components/partials/header/theme-switcher";
import { Button } from "@/components/ui/button";
import { Icon } from "@iconify/react/dist/iconify.js";
const NavbarKaltara = () => {
const params = useParams();
const router = useRouter();
const pathname = usePathname();
const [menuOpen, setMenuOpen] = useState(false);
const [onSearch, setOnSearch] = useState("");
const locale = params?.locale;
const poldaName = params?.polda_name;
const satkerName = params?.satker_name;
const t = useTranslations("LandingPage");
let prefixPath = poldaName ? `/polda/${poldaName}` : satkerName ? `/satker/${satkerName}` : "/";
return (
{/* */}
{/* */}
{t("content", { defaultValue: "Content" })}
{/* */}
router.push(prefixPath + "/image/filter")} className="flex place-items-start gap-1.5 p-2 w-36">
{t("image", { defaultValue: "Image" })}
router.push(prefixPath + "/video/filter")} className="flex items-start gap-1.5 p-2 ">
{pathname?.split("/")[1] == "in" ? (
<>
{t("video", { defaultValue: "Video" })}
>
) : (
<>
{t("video", { defaultValue: "Video" })}
>
)}
router.push(prefixPath + "/document/filter")} className="flex place-items-start gap-1.5 p-2">
{t("text", { defaultValue: "Text" })}
router.push(prefixPath + "/audio/filter")} className="flex place-items-start gap-1.5 p-2 ">
{t("audio", { defaultValue: "Audio" })}{" "}
{/*
*/}
{t("schedule", { defaultValue: "Schedule" })}
{/*
*/}
{t("index", { defaultValue: "Index" })}
{/* Mobile Menu Toggle */}
{/* Languange */}
{/* Dark Mode */}
{/* mobile menu */}
{menuOpen && (
{/* */}
{/* */}
{t("content", { defaultValue: "Content" })}
{/* */}
router.push(prefixPath + "/image/filter")} className="flex place-items-start gap-1.5 p-2 w-36">
{t("image", { defaultValue: "Image" })}
router.push(prefixPath + "/video/filter")} className="flex items-start gap-1.5 p-2 ">
{pathname?.split("/")[1] == "in" ? (
<>
{t("video", { defaultValue: "Video" })}
>
) : (
<>
{t("video", { defaultValue: "Video" })}
>
)}
router.push(prefixPath + "/document/filter")} className="flex place-items-start gap-1.5 p-2">
{t("text", { defaultValue: "Text" })}
router.push(prefixPath + "/audio/filter")} className="flex place-items-start gap-1.5 p-2 ">
{t("audio", { defaultValue: "Audio" })}{" "}
{/*
*/}
{t("schedule", { defaultValue: "Schedule" })}
{/*
*/}
{t("index", { defaultValue: "Index" })}
)}
);
};
export default NavbarKaltara;