mirror of
https://github.com/vitodeploy/vito.git
synced 2025-07-02 22:46:16 +00:00
Setup Inertia (#593)
This commit is contained in:
11
resources/js/components/icon.tsx
Normal file
11
resources/js/components/icon.tsx
Normal file
@ -0,0 +1,11 @@
|
||||
import { cn } from '@/lib/utils';
|
||||
import { type LucideProps } from 'lucide-react';
|
||||
import { type ComponentType } from 'react';
|
||||
|
||||
interface IconProps extends Omit<LucideProps, 'ref'> {
|
||||
iconNode: ComponentType<LucideProps>;
|
||||
}
|
||||
|
||||
export function Icon({ iconNode: IconComponent, className, ...props }: IconProps) {
|
||||
return <IconComponent className={cn('h-4 w-4', className)} {...props} />;
|
||||
}
|
Reference in New Issue
Block a user