Files
HRM-System/resources/js/components/icon.tsx
2026-04-13 08:16:56 +08:00

12 lines
392 B
TypeScript
Executable File

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} />;
}