"use client"; import * as React from "react"; import { Bolt, Send, Shield, Users, UserCog, Warehouse, Crosshair, Backpack, LifeBuoy } from "lucide-react"; import { NavCore } from "@/components/frontend/blocks/NavCore"; import { NavSecondary } from "@/components/frontend/blocks/NavSecondary"; import { NavUser } from "@/components/frontend/blocks/NavUser"; import { Sidebar, SidebarContent, SidebarFooter, SidebarHeader, SidebarMenu, SidebarMenuButton, SidebarMenuItem, } from "@/components/ui/sidebar"; import Image from "next/image"; import Link from "next/link"; import XPDisplay from "@/components/frontend/blocks/XPDisplay"; import type { ResolvedLevel } from "@/utils/xp/resolveLevel"; const data = { navMain: [ { title: "Dashboard", url: "/", icon: Bolt, }, { title: "Roster", url: "/roster", icon: Users, }, { title: "Helpdesk", url: "/helpdesk", icon: LifeBuoy, }, ], navIntelligence: [ { title: "Intelligence", url: "#", icon: Crosshair, items: [ { title: "Campaigns", url: "/intelligence/campaigns", }, { title: "Missions", url: "/intelligence/missions", }, { title: "Factions", url: "/intelligence/factions", }, ], }, ], navLogistics: [ { title: "Logistics", url: "#", icon: Warehouse, items: [ { title: "Structures", url: "/logistics", }, { title: "Resources", url: "/logistics/resources", }, { title: "Vehicles", url: "/logistics/vehicles", }, { title: "Shipments", url: "/logistics/shipments", }, { title: "Deployed Vehicles", url: "/logistics/game-vehicles", }, { title: "Banking", url: "/logistics/banking", }, { title: "Market", url: "/logistics/market", }, ], }, ], navSecondary: [ { title: "Feedback", url: "https://onyxsimple.youtrack.cloud", icon: Send, }, ], navPersonal: [ { title: "Locker", url: "/locker", icon: Backpack, }, { title: "Account", url: "/account", icon: UserCog, }, ], }; export function AppSidebar({ user, xpLevel, adminUrl, hasIntelligence = true, hasLogistics = true, showCallsign = false, ...props }: { user: { displayName: string; username: string; }; xpLevel: ResolvedLevel; adminUrl?: string; hasIntelligence?: boolean; hasLogistics?: boolean; showCallsign?: boolean; } & React.ComponentProps) { return ( {/*
Polaris Task Force Enterprise
*/}
Polaris Task Force
{hasIntelligence && ( typeof i.items === "object" ? { ...i, items: [...i.items] } : { ...i }, )} /> )} {hasLogistics && ( typeof i.items === "object" ? { ...i, items: [...i.items] } : { ...i }, )} /> )} {/**/}

); }