"use client"; import type { LucideIcon } from "lucide-react"; import { cn } from "@/lib/utils"; import { Tooltip, TooltipContent, TooltipProvider, TooltipTrigger } from "@/shared/ui/tooltip"; import { MAP_CONTROL_HOVER_CLASS_NAME, MAP_CONTROL_RADIUS_CLASS_NAME, MAP_ICON_CELL_RADIUS_CLASS_NAME, MAP_CONTROL_SURFACE_CLASS_NAME } from "./map-control-styles"; export type MapToolbarItem = { id: string; label: string; description?: string; icon: LucideIcon; active?: boolean; disabled?: boolean; badge?: string | number; onClick?: () => void; }; type MapToolbarProps = { items: MapToolbarItem[]; label?: string; orientation?: "vertical" | "horizontal"; className?: string; }; export function MapToolbar({ items, label = "地图工具", orientation = "vertical", className = "" }: MapToolbarProps) { const isVertical = orientation === "vertical"; return ( ); } function ToolbarDivider({ vertical }: { vertical: boolean }) { if (vertical) { return ( ); } return ( ); }