Spaces:
Paused
Paused
Download src/components/Knowledge/ResourceIcon.tsx from GraziePrego/deepresearch: direct link, hf CLI and curl.
- Browser
- Download file 470 Bytes
-
https://huggingface.co/spaces/GraziePrego/deepresearch/resolve/main/src/components/Knowledge/ResourceIcon.tsx
- Command line
-
hf download hf://spaces/GraziePrego/deepresearch/src/components/Knowledge/ResourceIcon.tsx
-
curl -L -o ResourceIcon.tsx https://huggingface.co/spaces/GraziePrego/deepresearch/resolve/main/src/components/Knowledge/ResourceIcon.tsx
470 Bytes
| "use client"; | |
| import { File, BookText, Link } from "lucide-react"; | |
| import { cn } from "@/utils/style"; | |
| type Props = { | |
| className?: string; | |
| type: string; | |
| }; | |
| function ResourceIcon({ className, type }: Props) { | |
| if (type === "knowledge") { | |
| return <BookText className={className} />; | |
| } else if (type === "url") { | |
| return <Link className={cn("scale-90", className)} />; | |
| } else { | |
| return <File className={className} />; | |
| } | |
| } | |
| export default ResourceIcon; | |