import { useParams, usePathname, useRouter } from "next/navigation"; import React, { useEffect, useState } from "react"; import { DropdownMenu, DropdownMenuContent, DropdownMenuItem, DropdownMenuTrigger } from "../ui/dropdown-menu"; import { FiFile, FiImage, FiMusic, FiYoutube } from "react-icons/fi"; import { Icon } from "@iconify/react/dist/iconify.js"; import { useTranslations } from "next-intl"; import { Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectTrigger, SelectValue } from "@/components/ui/select"; const WelcomePolda = () => { const router = useRouter(); const asPath: any = usePathname(); const params = useParams(); const poldaName: any = params?.polda_name; const [categorySelect, setCategorySelect] = useState("0"); const t = useTranslations("LandingPage"); const [contentType, setContentType] = useState("all"); const [search, setSearch] = useState(""); useEffect(() => { function initState() { console.log(categorySelect); } initState(); }, [categorySelect]); return (
{/* Heading */}

{t("welcome", { defaultValue: "Welcome" })} Di Polda {poldaName.replace("-", " ")}

{t("polda", { defaultValue: "Polda" })} {poldaName.replace("-", " ")}

{/* Search Form */} {/*
*/} {/* Dropdown */} {/*
{t("content", { defaultValue: "Content" })} {t("video", { defaultValue: "Video" })} {t("audio", { defaultValue: "Audio" })} {t("image", { defaultValue: "Image" })} {t("text", { defaultValue: "Text" })}
*/} {/* Button */} {/* */} {/*
*/}
{/* Dropdown */}
setSearch(e.target.value)} />
{/* Search Input */}
); }; export default WelcomePolda;