mirror of
https://github.com/vitodeploy/vito.git
synced 2025-05-14 03:53:35 +00:00
15 lines
295 B
TypeScript
15 lines
295 B
TypeScript
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} />;
|
|
}
|