Spaces:
Runtime error
Runtime error
| 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} | |
| /> | |
| ); | |
| } | |