INit
This commit is contained in:
14
resources/js/components/ui/icon.tsx
Normal file
14
resources/js/components/ui/icon.tsx
Normal file
@@ -0,0 +1,14 @@
|
||||
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} />;
|
||||
}
|
||||
Reference in New Issue
Block a user