Files
TREK/client/src/components/Help/helpIcons.ts
T
Maurice cff2e55db7 feat(help): Studio's help as Studio is now, with guides for themes, stickers, travel, text effects, backgrounds, layers and own layouts
The screen texts name the top bar, the rail and the workbench as they are
after the redesign, the travel guide walks through the four tabs, and six
new guides cover what Studio gained since its help was written. Every
Studio picture is taken again, and all texts are translated.
2026-10-24 15:38:36 +02:00

132 lines
3.7 KiB
TypeScript

import {
Plus, Pencil, Image, Copy, Archive, Trash2, SlidersHorizontal, CalendarPlus, LayoutDashboard, Coins, Clock, Compass,
CalendarCheck, CircleDot, Hourglass, Calculator, CalendarRange, Building2, Flag, GraduationCap, CalendarOff, CalendarDays,
Repeat, UserPlus, Share2, Globe, MapPin, Search, Star, Eye, LandPlot, BarChart3, MinusCircle, Landmark,
DownloadCloud, CheckCircle2, PanelRight, Tags, Upload, FileInput, Library, Bookmark, BookOpen, Sparkles, ThumbsUp, Images, Link,
Book, Palette, Map, Bell, Plug, CloudOff, User, Lock, ShieldCheck, Fingerprint, KeyRound,
Route, Users, UserRound, Crown, PanelLeftClose, Undo2, Ticket, Train, Plane, ListChecks, Wallet, FolderOpen, MessagesSquare,
ArrowUpDown, Backpack, BatteryCharging, BedDouble, BellRing, Bike, Blocks, CableCar, Car, CloudDownload, CopyPlus, FileDown, FilePen, FileSpreadsheet, FolderInput, Footprints, History, Info, Layers, MailCheck, MapPinned, Moon, Mountain, MountainSnow, MoveRight, NotebookPen, PackagePlus, Pin, Receipt, Rotate3d, RouteOff, Shuffle, Spline, TriangleAlert, Waves, Wind,
PaintBucket, Sticker, Type,
type LucideIcon,
} from 'lucide-react'
import type { HelpIcon } from '../../help/types'
/** The registry names icons; the components draw them. Unknown names fall back to the compass. */
const ICONS: Record<HelpIcon, LucideIcon> = {
plus: Plus,
sticker: Sticker,
type: Type,
paintBucket: PaintBucket,
pencil: Pencil,
image: Image,
copy: Copy,
archive: Archive,
trash: Trash2,
filter: SlidersHorizontal,
calendar: CalendarPlus,
layout: LayoutDashboard,
coins: Coins,
clock: Clock,
compass: Compass,
calendarCheck: CalendarCheck,
halfDay: CircleDot,
hourglass: Hourglass,
calculator: Calculator,
calendarRange: CalendarRange,
building: Building2,
flag: Flag,
graduationCap: GraduationCap,
calendarOff: CalendarOff,
calendarDays: CalendarDays,
repeat: Repeat,
userPlus: UserPlus,
share: Share2,
globe: Globe,
mapPin: MapPin,
search: Search,
star: Star,
eye: Eye,
regions: LandPlot,
chart: BarChart3,
minusCircle: MinusCircle,
landmark: Landmark,
download: DownloadCloud,
checkCircle: CheckCircle2,
panelRight: PanelRight,
tags: Tags,
upload: Upload,
fileInput: FileInput,
library: Library,
bookmark: Bookmark,
bookOpen: BookOpen,
sparkles: Sparkles,
thumbsUp: ThumbsUp,
gallery: Images,
link: Link,
book: Book,
sliders: SlidersHorizontal,
palette: Palette,
map: Map,
bell: Bell,
plug: Plug,
cloudOff: CloudOff,
user: User,
lock: Lock,
shield: ShieldCheck,
fingerprint: Fingerprint,
key: KeyRound,
route: Route,
users: Users,
userRound: UserRound,
crown: Crown,
panelLeft: PanelLeftClose,
undo: Undo2,
ticket: Ticket,
train: Train,
plane: Plane,
listChecks: ListChecks,
wallet: Wallet,
folder: FolderOpen,
messages: MessagesSquare,
mountain: Mountain,
footprints: Footprints,
bike: Bike,
layers: Layers,
rotate3d: Rotate3d,
mountainSnow: MountainSnow,
waves: Waves,
wind: Wind,
history: History,
fileDown: FileDown,
backpack: Backpack,
bellRing: BellRing,
blocks: Blocks,
info: Info,
receipt: Receipt,
pin: Pin,
arrowUpDown: ArrowUpDown,
packagePlus: PackagePlus,
routeOff: RouteOff,
car: Car,
fileSpreadsheet: FileSpreadsheet,
bed: BedDouble,
batteryCharging: BatteryCharging,
alert: TriangleAlert,
filePen: FilePen,
cloudDownload: CloudDownload,
mapPinned: MapPinned,
shuffle: Shuffle,
moon: Moon,
spline: Spline,
cableCar: CableCar,
copyPlus: CopyPlus,
folderInput: FolderInput,
mailCheck: MailCheck,
notebookPen: NotebookPen,
moveRight: MoveRight,
}
export function helpIcon(name: HelpIcon): LucideIcon {
return ICONS[name] ?? Compass
}