Spaces:
Sleeping
Sleeping
Download src/components/ui/TreeItem.tsx from Samfredoly/jor: direct link, hf CLI and curl.
- Browser
- Download file 501 Bytes
-
https://huggingface.co/spaces/Samfredoly/jor/resolve/main/src/components/ui/TreeItem.tsx
- Command line
-
hf download hf://spaces/Samfredoly/jor/src/components/ui/TreeItem.tsx
-
curl -L -o TreeItem.tsx https://huggingface.co/spaces/Samfredoly/jor/resolve/main/src/components/ui/TreeItem.tsx
501 Bytes
| import type { ReactNode } from 'react' | |
| import { StatusBadge } from './StatusBadge' | |
| import type { LineageStatus } from '../../types' | |
| export function TreeItem({ icon, label, indent = false, active = false, status }: { icon: ReactNode; label: string; indent?: boolean; active?: boolean; status?: LineageStatus }) { return <div className={`tree-item ${indent ? 'tree-indent' : ''} ${active ? 'tree-active' : ''}`}><span>{icon}<b>{label}</b></span>{status && <StatusBadge status={status} />}</div> } | |