Spaces:
Runtime error
Runtime error
Download src/components/shared/icon.tsx from Ali-Developments/COURTRIX: direct link, hf CLI and curl.
- Browser
- Download file 518 Bytes
-
https://huggingface.co/spaces/Ali-Developments/COURTRIX/resolve/main/src/components/shared/icon.tsx
- Command line
-
hf download hf://spaces/Ali-Developments/COURTRIX/src/components/shared/icon.tsx
-
curl -L -o icon.tsx https://huggingface.co/spaces/Ali-Developments/COURTRIX/resolve/main/src/components/shared/icon.tsx
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} | |
| /> | |
| ); | |
| } | |