Files

15 lines
309 B
TypeScript
Raw Permalink Normal View History

2025-10-22 17:09:48 +02:00
import { LucideIcon } from 'lucide-react';
interface IconProps {
iconNode?: LucideIcon | null;
className?: string;
}
export function Icon({ iconNode: IconComponent, className }: IconProps) {
if (!IconComponent) {
return null;
}
return <IconComponent className={className} />;
}