"use client"; import { siteConfig } from "@/config/site"; import { Input } from "@nextui-org/input"; import { Navbar, NavbarContent, NavbarItem, NavbarMenu, NavbarMenuItem, NavbarMenuToggle, } from "@nextui-org/navbar"; import { Button, Dropdown, DropdownItem, DropdownMenu, DropdownTrigger, } from "@nextui-org/react"; import Image from "next/image"; import Link from "next/link"; import { useState } from "react"; import { ChevronDownIcon, ChevronRightIcon, ChevronUpIcon, FbIcon, IdnIcon, IgIcon, SearchIcon, TtIcon, TwIcon, YtIcon, } from "../../icons"; import { ThemeSwitch } from "../../theme-switch"; interface MenuItem { key: string; label: string; href: URL; submenu?: SubMenuItem[]; } interface SubMenuItem { label: string; href: string; } interface DropdownOpenState { [key: string]: boolean; } export default function NavbarHumas() { const [dropdownOpen, setDropdownOpen] = useState({}); const toggleDropdown = (key: any) => { setDropdownOpen({ ...dropdownOpen, [key]: !dropdownOpen[key], }); }; const searchInput = ( } type="search" /> ); return (
logo
Beranda
Tentang Humas POLRI Profile Pimpinan POLRI Struktur Organisasi Visi & Misi Tugas & Fungsi Logo
Portal PPID
Formulir Permohonan Informasi Pelayanan SIM Pelayanan e-Rikkes SIM Pelayanan Test Psikologi SIM Pelayanan e-Arvis Pelayanan Samsat Digital Pelayanan SKCK Pelayanan Propam Presisi Pelayanan Dumas Presisi Pelayanan Binmas Whistle Blower System
Kontak
{searchInput}
{/* {searchInput} */}
{siteConfig.humasMenuItems.map((item) => (
toggleDropdown(item.key)} className="flex items-end gap-2" > {item.href ? ( {item.label} ) : ( {item.label} )} {item.submenu && (dropdownOpen[item.key] ? ( ) : ( ))}
{dropdownOpen[item.key] && item.submenu && (
{item.submenu.map((subItem, subIndex) => (
{subItem.label}
))}
)}
))}
// //
// //
//
//
// //
Beranda
// //
// // // // // // // // } // > // // Tentang Humas POLRI // // // } // > // // Profile Pimpinan POLRI // // // }> // // Struktur Organisasi // // // }> // // Visi & Misi // // // }> // // Tugas & Fungsi // // // }> // Logo // // // //
//
Portal PPID
//
// // // // // // // // } // > // // Formulir Permohonan Informasi // // // } // > // // Pelayanan SIM // // // }> // // Pelayanan e-Rikkes SIM // // // }> // // Pelayanan Test Psikologi SIM // // // }> // // Pelayanan e-Arvis // // // }> // // Pelayanan Samsat Digital // // // }> // // Pelayanan SKCK // // // }> // // Pelayanan Propam Presisi // // // }> // // Pelayanan Dumas Presisi // // // }> // // Pelayanan Binmas // // // }> // // Whistle Blower System // // // // //
//
// Kontak
//
//
//
//
//
//
// // // // // // // // // // // // // // // //
//
//
//
// {searchInput} //
//
// // // // //
); }