import { useState } from 'react'; import { BadgeCheck, CheckCircle2, Mountain, Plus } from 'lucide-react'; import { Button, Select } from '../../components/ui'; import { CERTIFIED_MAP_ASSETS, MAP_ASSET_DRAG_MIME, MAP_ASSET_PLACEMENT_MIME, } from '../../map/editor/assetCatalog'; import { MAP_OBJECT_PLACEMENT_LABELS, type EditableMapDocument, type EditableMapObjectType, type MapObjectPlacementMode, } from '../../map/editor/types'; import { PHYSICAL_MAP_PRESET_LABELS, SYSTEM_TERRAIN_PRESETS, type SystemTerrainPreset, } from '../../map/types'; function AssetPreview({ type, color }: { type: EditableMapObjectType; color: string }) { const shape = type === 'cylinder' ? 'h-9 w-9 rounded-full' : type === 'capsule' ? 'h-10 w-6 rounded-full' : type === 'ramp' ? 'h-0 w-0 border-b-[34px] border-l-[48px] border-l-transparent' : type === 'stairs' ? 'h-9 w-11 [clip-path:polygon(0_100%,0_66%,34%_66%,34%_33%,67%_33%,67%_0,100%_0,100%_100%)]' : 'h-9 w-9 rounded-sm'; return (