Download frontend/src/components/PrivacyNote.jsx from arvind112/vision_ai: direct link, hf CLI and curl.
- Browser
- Download file 684 Bytes
-
https://huggingface.co/spaces/arvind112/vision_ai/resolve/main/frontend/src/components/PrivacyNote.jsx
- Command line
-
hf download hf://spaces/arvind112/vision_ai/frontend/src/components/PrivacyNote.jsx
-
curl -L -o PrivacyNote.jsx https://huggingface.co/spaces/arvind112/vision_ai/resolve/main/frontend/src/components/PrivacyNote.jsx
684 Bytes
| import { Lock } from 'lucide-react' | |
| import { useEffect, useState } from 'react' | |
| import { loadHealth } from '../lib/privacy' | |
| import { privacyText } from '../lib/privacy' | |
| export default function PrivacyNote({ feature }) { | |
| const [ai, setAi] = useState(null) | |
| useEffect(() => { | |
| let live = true | |
| loadHealth().then((h) => live && setAi(h?.ai ?? null)) | |
| return () => { | |
| live = false | |
| } | |
| }, []) | |
| return ( | |
| <p className="flex gap-2 text-xs text-ink-2"> | |
| <Lock className="mt-0.5 size-3.5 shrink-0" strokeWidth={1.75} aria-hidden="true" /> | |
| <span>{feature === 'caption' || ai ? privacyText(feature, ai) : 'Checking where data goes…'}</span> | |
| </p> | |
| ) | |
| } | |