Spaces:
Sleeping
Sleeping
Download src/components/ModeBar.jsx from Aya07/emotion-ui: direct link, hf CLI and curl.
- Browser
- Download file 397 Bytes
-
https://huggingface.co/spaces/Aya07/emotion-ui/resolve/main/src/components/ModeBar.jsx
- Command line
-
hf download hf://spaces/Aya07/emotion-ui/src/components/ModeBar.jsx
-
curl -L -o ModeBar.jsx https://huggingface.co/spaces/Aya07/emotion-ui/resolve/main/src/components/ModeBar.jsx
397 Bytes
| import "../styles/ModeBar.css"; | |
| const ModeBar = ({ mode, setMode, t }) => { | |
| return ( | |
| <div className="mode-bar"> | |
| <button | |
| className={`mode-btn ${mode === "file" ? "active" : ""}`} | |
| onClick={() => setMode("file")} | |
| > | |
| <span className="mode-icon">📁</span> | |
| <span>{t.uploadFile}</span> | |
| </button> | |
| </div> | |
| ); | |
| }; | |
| export default ModeBar; |