Skip to content

Project NOMAD is an offline-first knowledge and education server. Wikipedia, thousands of books, courses, maps, and optional local AI, all running on hardware you own with no internet required.

TypeScript
2.4 KB
Raw Blame
import {
  IconAntenna,
  IconArrowUp,
  IconBook,
  IconBooks,
  IconBox,
  IconBrain,
  IconBrandDocker,
  IconBroadcast,
  IconChefHat,
  IconCheck,
  IconChevronDown,
  IconChevronLeft,
  IconChevronRight,
  IconCircleCheck,
  IconCloudDownload,
  IconCloudUpload,
  IconCode,
  IconCopy,
  IconCpu,
  IconDatabase,
  IconDownload,
  IconExternalLink,
  IconFileDescription,
  IconFolderOpen,
  IconHome,
  IconInfoCircle,
  IconLogs,
  IconMap,
  IconMenu2,
  IconMoon,
  IconMovie,
  IconNotes,
  IconPencil,
  IconPlant,
  IconPlayerPlay,
  IconPlayerStop,
  IconPlus,
  IconRefresh,
  IconRefreshAlert,
  IconRobot,
  IconSchool,
  IconSearch,
  IconServer,
  IconSettings,
  IconShieldCheck,
  IconShieldLock,
  IconStethoscope,
  IconSun,
  IconTool,
  IconTrash,
  IconUpload,
  IconWand,
  IconWifi,
  IconWorld,
  IconX,
  IconAlertTriangle,
  IconXboxX,
  IconBug,
  IconCopy,
  IconLibrary,
  IconServer,
  IconMenu2,
  IconArrowLeft,
  IconArrowRight,
} from '@tabler/icons-react'

/**
 * An explicit import of used icons in the DynamicIcon component to ensure we get maximum tree-shaking
 * while still providing us a nice DX with the DynamicIcon component and icon name inference.
 * Only icons that are actually used by DynamicIcon should be added here. Yes, it does introduce
 * some manual maintenance, but the bundle size benefits are worth it since we use a (relatively)
 * very limited subset of the full Tabler Icons library.
 */
export const icons = {
  IconAntenna,
  IconAlertTriangle,
  IconArrowLeft,
  IconArrowRight,
  IconArrowUp,
  IconBook,
  IconBooks,
  IconBox,
  IconBrain,
  IconBrandDocker,
  IconBroadcast,
  IconBug,
  IconChefHat,
  IconCheck,
  IconChevronDown,
  IconChevronLeft,
  IconChevronRight,
  IconCircleCheck,
  IconCloudDownload,
  IconCloudUpload,
  IconCode,
  IconCopy,
  IconCpu,
  IconDatabase,
  IconDownload,
  IconExternalLink,
  IconFileDescription,
  IconFolderOpen,
  IconHome,
  IconInfoCircle,
  IconLibrary,
  IconLogs,
  IconMap,
  IconMenu2,
  IconMoon,
  IconMovie,
  IconNotes,
  IconPencil,
  IconPlant,
  IconPlayerPlay,
  IconPlayerStop,
  IconPlus,
  IconRefresh,
  IconRefreshAlert,
  IconRobot,
  IconSchool,
  IconSearch,
  IconServer,
  IconSettings,
  IconShieldCheck,
  IconShieldLock,
  IconStethoscope,
  IconSun,
  IconTool,
  IconTrash,
  IconUpload,
  IconWand,
  IconWifi,
  IconWorld,
  IconX,
  IconXboxX
} as const

export type DynamicIconName = keyof typeof icons