COURTRIX / src /components /shared /icon.tsx
Ali-Developments's picture
Upload 125 files
ad79323 verified
Raw
History Blame Contribute Delete
518 Bytes
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}
/>
);
}