Icon.tsx 401 B

123456789101112
  1. import { type LucideProps } from 'lucide-react';
  2. import { type ComponentType } from 'react';
  3. import { cn } from '@/common/helpers/cn';
  4. interface IconProps extends Omit<LucideProps, 'ref'> {
  5. iconNode: ComponentType<LucideProps>;
  6. }
  7. export function Icon({ iconNode: IconComponent, className, ...props }: IconProps) {
  8. return <IconComponent className={cn('h-4 w-4', className)} {...props} />;
  9. }