Files
peakskills/lib/category-icons.ts
Julien Froidefond fe63f9592a Enhance skill evaluation UI with category icons and URL state management
- Added category icons to the skill evaluation components for better visual representation.
- Implemented URL parameter handling in SkillEvaluation to maintain selected category state across navigation.
- Improved the HomePage layout with expandable skill categories and enhanced user interaction.
- Updated skill data files to include icon properties for each category.
2025-08-20 15:52:59 +02:00

19 lines
385 B
TypeScript

import {
Monitor,
Server,
Settings,
Smartphone,
LucideIcon
} from "lucide-react";
const CATEGORY_ICON_MAP: Record<string, LucideIcon> = {
monitor: Monitor,
server: Server,
settings: Settings,
smartphone: Smartphone,
};
export function getCategoryIcon(iconName: string): LucideIcon {
return CATEGORY_ICON_MAP[iconName] || Settings; // Settings as fallback
}