Beautiful, AI-native markdown IDE and LLM wiki
TypeScript 2nd-brainagent-skillsclaudecodexcompany-braindocsknowledge-knowledge-baseknowledge-managementllmllm-wikillm-wiki-karpathymarkdownmarkdown-editormdmdxnotespkmsecond-brainskills
import {
AlignCenter,
AppWindow,
Box,
ChevronRight,
CopyPlus,
FileText,
Film,
GitBranch,
Image,
LayoutPanelTop,
type LucideIcon,
MessageSquareWarning,
PanelTop,
Paperclip,
PenTool,
Sigma,
SquarePlay,
Volume2,
Workflow,
ZoomIn,
} from 'lucide-react';
const ICON_COMPONENTS: Record<string, LucideIcon> = {
AlignCenter,
AppWindow,
ChevronRight,
CopyPlus,
FileText,
Film,
GitBranch,
Image,
LayoutPanelTop,
MessageSquareWarning,
PanelTop,
Paperclip,
PenTool,
Sigma,
SquarePlay,
Volume2,
Workflow,
ZoomIn,
};
export function hasIconMapping(iconName: string): boolean {
return Object.hasOwn(ICON_COMPONENTS, iconName);
}
export function resolveIcon(iconName: string | undefined): LucideIcon {
if (!iconName) return Box;
return Object.hasOwn(ICON_COMPONENTS, iconName) ? ICON_COMPONENTS[iconName] : Box;
}