- 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.
19 lines
385 B
TypeScript
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
|
|
}
|