Spaces:
Running on CPU Upgrade
Running on CPU Upgrade
Download web_app/src/components/stance/SoundToggle.tsx from CommunityOne/open-navigator: direct link, hf CLI and curl.
- Browser
- Download file 570 Bytes
-
https://huggingface.co/spaces/CommunityOne/open-navigator/resolve/main/web_app/src/components/stance/SoundToggle.tsx
- Command line
-
hf download hf://spaces/CommunityOne/open-navigator/web_app/src/components/stance/SoundToggle.tsx
-
curl -L -o SoundToggle.tsx https://huggingface.co/spaces/CommunityOne/open-navigator/resolve/main/web_app/src/components/stance/SoundToggle.tsx
570 Bytes
| interface Props { | |
| on: boolean | |
| onToggle: () => void | |
| } | |
| /** The sound switch in the top bar of every challenge screen. The choice is the caller's to remember. */ | |
| export default function SoundToggle({ on, onToggle }: Props) { | |
| return ( | |
| <button type="button" className="folio-btn stance-sound" aria-pressed={on} onClick={onToggle} data-testid="stance-sound"> | |
| <span aria-hidden="true" className="stance-sound-icon"> | |
| {on ? '♪' : '×'} | |
| </span> | |
| <span className="stance-sound-label">{on ? 'Sound on' : 'Sound off'}</span> | |
| </button> | |
| ) | |
| } | |