Download ui/src/components/ThemeLogo.tsx from michaelu0826/ai_toolkit_code: direct link, hf CLI and curl.
- Browser
- Download file 316 Bytes
-
https://huggingface.co/datasets/michaelu0826/ai_toolkit_code/resolve/main/ui/src/components/ThemeLogo.tsx
- Command line
-
hf download hf://datasets/michaelu0826/ai_toolkit_code/ui/src/components/ThemeLogo.tsx
-
curl -L -o ThemeLogo.tsx https://huggingface.co/datasets/michaelu0826/ai_toolkit_code/resolve/main/ui/src/components/ThemeLogo.tsx
316 Bytes
| 'use client'; | |
| import { useTheme } from './ThemeProvider'; | |
| const ThemeLogo = () => { | |
| const { theme } = useTheme(); | |
| const src = theme === 'dark' ? '/ostris_logo.png' : '/ostris_logo_black.png'; | |
| return <img src={src} alt="Ostris AI Toolkit" className="w-auto h-7 mr-3 inline" />; | |
| }; | |
| export default ThemeLogo; | |