mirror of
https://github.com/IVJAB/adrar.redmush.laravel.git
synced 2026-11-14 17:33:22 +00:00
14 lines
314 B
TypeScript
14 lines
314 B
TypeScript
import type { 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} />;
|
|
}
|