import { cn } from "@/lib/utils"; import { Separator } from "@/components/ui/separator"; import { DecorIcon } from "@/components/decor-icon"; import { AppBreadcrumbs } from "@/components/app-breadcrumbs"; import { MapsBreadcrumb } from "@/components/maps/maps-breadcrumb"; import { getNavLinks } from "@/components/app-shared"; import { CustomSidebarTrigger } from "@/components/custom-sidebar-trigger"; import { NavUser } from "@/components/nav-user"; import { TrendingDownIcon, RoadHorizonIcon, FuelIcon } from "@/components/ui/phosphor-icons"; const MAP_PAGES: Record = { "/dashboard/poverty": { label: "Peta Kemiskinan", icon: }, "/dashboard/land": { label: "Lahan dan Jalan", icon: }, "/dashboard/gas-station": { label: "SPBU dan Charger", icon: }, }; export function AppHeader({ activePath, fullBleed = false, onExitFullBleed }: { activePath?: string; fullBleed?: boolean; onExitFullBleed?: () => void }) { const links = getNavLinks(activePath); const activeItem = links.find((item) => item.isActive); const mapPage = activePath ? MAP_PAGES[activePath] : undefined; return (
{mapPage ? ( ) : ( )}
); }