Files
accounted/lib/extensions/icon-resolver.tsx
T
Jakob Wennberg 34b677b02c chore(ui): retire the Building2 icon app-wide (#2235)
Founder request from the register walkthrough. Suppliers (nav, command
palette, empty state) use Truck; company and company-scoped surfaces
(active company badge, invite, home signpost, SIE preview, template
scopes, TIC workspace and its manifest) use Briefcase; the two bank
contexts use Landmark. The extension icon resolver no longer maps
Building2; the generated sector definitions follow the manifest.

Co-authored-by: Jakob Wennberg <311770904+jakobwennberg-oss@users.noreply.github.com>
Co-authored-by: Claude Fable 5.1 <noreply@anthropic.com>
2026-09-03 20:02:14 +02:00

79 lines
1019 B
TypeScript

import {
Camera,
Wand,
MessageSquare,
Bell,
Inbox,
Landmark,
UtensilsCrossed,
ChefHat,
Wine,
FileSpreadsheet,
HandCoins,
HardHat,
Calculator,
FolderKanban,
Hotel,
TrendingUp,
BedDouble,
Monitor,
Clock,
ReceiptText,
ShoppingCart,
Store,
BarChart3,
Layers,
Puzzle,
TextSearch,
Ship,
FileText,
Shield,
Briefcase,
Truck,
ArrowRightLeft,
Mail,
MessageCircle,
type LucideIcon,
} from 'lucide-react'
const ICON_MAP: Record<string, LucideIcon> = {
Camera,
Wand,
MessageSquare,
Bell,
Inbox,
Landmark,
UtensilsCrossed,
ChefHat,
Wine,
FileSpreadsheet,
HandCoins,
HardHat,
Calculator,
FolderKanban,
Hotel,
TrendingUp,
BedDouble,
Monitor,
Clock,
ReceiptText,
ShoppingCart,
Store,
BarChart3,
Layers,
Puzzle,
TextSearch,
Ship,
FileText,
Shield,
Briefcase,
Truck,
ArrowRightLeft,
Mail,
MessageCircle,
}
export function resolveIcon(name: string): LucideIcon {
return ICON_MAP[name] ?? Puzzle
}