import React from 'react'; import * as LucideIcons from 'lucide-react'; import { cn } from '@/lib/utils'; export type IconName = keyof typeof LucideIcons; interface IconProps { name: string; size?: number; className?: string; color?: string; } export const Icon: React.FC = ({ name, size = 14, className, color, }) => { const LucideIcon = (LucideIcons as unknown as Record>)[name]; if (!LucideIcon) { const Fallback = LucideIcons.Activity; return ; } return ( ); }; export default Icon;