Spaces:
Runtime error

File size: 518 Bytes
ad79323
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
import type { IconSvgElement, HugeiconsIconProps } from "@hugeicons/react";
import { HugeiconsIcon } from "@hugeicons/react";

import { cn } from "@/lib/utils";

type IconProps = Omit<HugeiconsIconProps, "icon"> & {
  icon: IconSvgElement;
  className?: string;
};

export function Icon({
  className,
  size = 20,
  strokeWidth = 1.8,
  ...props
}: IconProps) {
  return (
    <HugeiconsIcon
      size={size}
      strokeWidth={strokeWidth}
      className={cn("shrink-0", className)}
      {...props}
    />
  );
}